/*! jQuery Migrate v3.4.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */ "undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,window)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window):t(jQuery,window)}(function(s,n){"use strict";function e(e){return 0<=function(e,t){for(var r=/^(\d+)\.(\d+)\.(\d+)/,n=r.exec(e)||[],o=r.exec(t)||[],a=1;a<=3;a++){if(+o[a]<+n[a])return 1;if(+n[a]<+o[a])return-1}return 0}(s.fn.jquery,e)}s.migrateVersion="3.4.1";var t=Object.create(null);s.migrateDisablePatches=function(){for(var e=0;e\x20\t\r\n\f]*)[^>]*)\/>/gi;s.UNSAFE_restoreLegacyHtmlPrefilter=function(){s.migrateEnablePatches("self-closed-tags")},i(s,"htmlPrefilter",function(e){var t,r;return(r=(t=e).replace(F,"<$1>"))!==t&&T(t)!==T(r)&&u("self-closed-tags","HTML tags must be properly nested and closed: "+t),e.replace(F,"<$1>")},"self-closed-tags"),s.migrateDisablePatches("self-closed-tags");var D,W,_,I=s.fn.offset;return i(s.fn,"offset",function(){var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?I.apply(this,arguments):(u("offset-valid-elem","jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)},"offset-valid-elem"),s.ajax&&(D=s.param,i(s,"param",function(e,t){var r=s.ajaxSettings&&s.ajaxSettings.traditional;return void 0===t&&r&&(u("param-ajax-traditional","jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),t=r),D.call(this,e,t)},"param-ajax-traditional")),c(s.fn,"andSelf",s.fn.addBack,"andSelf","jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),s.Deferred&&(W=s.Deferred,_=[["resolve","done",s.Callbacks("once memory"),s.Callbacks("once memory"),"resolved"],["reject","fail",s.Callbacks("once memory"),s.Callbacks("once memory"),"rejected"],["notify","progress",s.Callbacks("memory"),s.Callbacks("memory")]],i(s,"Deferred",function(e){var a=W(),i=a.promise();function t(){var o=arguments;return s.Deferred(function(n){s.each(_,function(e,t){var r="function"==typeof o[e]&&o[e];a[t[1]](function(){var e=r&&r.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[t[0]+"With"](this===i?n.promise():this,r?[e]:arguments)})}),o=null}).promise()}return c(a,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),c(i,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),e&&e.call(a,a),a},"deferred-pipe"),s.Deferred.exceptionHook=W.exceptionHook),s}) ;/*! * Font Awesome Free 5.15.1 by @fontawesome - https://fontawesome.com * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) */ (function(){var l,a;l=this,a=function(){"use strict";var l={},a={};try{"undefined"!=typeof window&&(l=window),"undefined"!=typeof document&&(a=document)}catch(l){}var e=(l.navigator||{}).userAgent,r=void 0===e?"":e,n=l,o=a,u=(n.document,!!o.documentElement&&!!o.head&&"function"==typeof o.addEventListener&&o.createElement,~r.indexOf("MSIE")||r.indexOf("Trident/"),"___FONT_AWESOME___"),t=function(){try{return"production"===process.env.NODE_ENV}catch(l){return!1}}();var f=n||{};f[u]||(f[u]={}),f[u].styles||(f[u].styles={}),f[u].hooks||(f[u].hooks={}),f[u].shims||(f[u].shims=[]);var i=f[u],s=[["glass",null,"glass-martini"],["meetup","fab",null],["star-o","far","star"],["remove",null,"times"],["close",null,"times"],["gear",null,"cog"],["trash-o","far","trash-alt"],["file-o","far","file"],["clock-o","far","clock"],["arrow-circle-o-down","far","arrow-alt-circle-down"],["arrow-circle-o-up","far","arrow-alt-circle-up"],["play-circle-o","far","play-circle"],["repeat",null,"redo"],["rotate-right",null,"redo"],["refresh",null,"sync"],["list-alt","far",null],["dedent",null,"outdent"],["video-camera",null,"video"],["picture-o","far","image"],["photo","far","image"],["image","far","image"],["pencil",null,"pencil-alt"],["map-marker",null,"map-marker-alt"],["pencil-square-o","far","edit"],["share-square-o","far","share-square"],["check-square-o","far","check-square"],["arrows",null,"arrows-alt"],["times-circle-o","far","times-circle"],["check-circle-o","far","check-circle"],["mail-forward",null,"share"],["expand",null,"expand-alt"],["compress",null,"compress-alt"],["eye","far",null],["eye-slash","far",null],["warning",null,"exclamation-triangle"],["calendar",null,"calendar-alt"],["arrows-v",null,"arrows-alt-v"],["arrows-h",null,"arrows-alt-h"],["bar-chart","far","chart-bar"],["bar-chart-o","far","chart-bar"],["twitter-square","fab",null],["facebook-square","fab",null],["gears",null,"cogs"],["thumbs-o-up","far","thumbs-up"],["thumbs-o-down","far","thumbs-down"],["heart-o","far","heart"],["sign-out",null,"sign-out-alt"],["linkedin-square","fab","linkedin"],["thumb-tack",null,"thumbtack"],["external-link",null,"external-link-alt"],["sign-in",null,"sign-in-alt"],["github-square","fab",null],["lemon-o","far","lemon"],["square-o","far","square"],["bookmark-o","far","bookmark"],["twitter","fab",null],["facebook","fab","facebook-f"],["facebook-f","fab","facebook-f"],["github","fab",null],["credit-card","far",null],["feed",null,"rss"],["hdd-o","far","hdd"],["hand-o-right","far","hand-point-right"],["hand-o-left","far","hand-point-left"],["hand-o-up","far","hand-point-up"],["hand-o-down","far","hand-point-down"],["arrows-alt",null,"expand-arrows-alt"],["group",null,"users"],["chain",null,"link"],["scissors",null,"cut"],["files-o","far","copy"],["floppy-o","far","save"],["navicon",null,"bars"],["reorder",null,"bars"],["pinterest","fab",null],["pinterest-square","fab",null],["google-plus-square","fab",null],["google-plus","fab","google-plus-g"],["money","far","money-bill-alt"],["unsorted",null,"sort"],["sort-desc",null,"sort-down"],["sort-asc",null,"sort-up"],["linkedin","fab","linkedin-in"],["rotate-left",null,"undo"],["legal",null,"gavel"],["tachometer",null,"tachometer-alt"],["dashboard",null,"tachometer-alt"],["comment-o","far","comment"],["comments-o","far","comments"],["flash",null,"bolt"],["clipboard","far",null],["paste","far","clipboard"],["lightbulb-o","far","lightbulb"],["exchange",null,"exchange-alt"],["cloud-download",null,"cloud-download-alt"],["cloud-upload",null,"cloud-upload-alt"],["bell-o","far","bell"],["cutlery",null,"utensils"],["file-text-o","far","file-alt"],["building-o","far","building"],["hospital-o","far","hospital"],["tablet",null,"tablet-alt"],["mobile",null,"mobile-alt"],["mobile-phone",null,"mobile-alt"],["circle-o","far","circle"],["mail-reply",null,"reply"],["github-alt","fab",null],["folder-o","far","folder"],["folder-open-o","far","folder-open"],["smile-o","far","smile"],["frown-o","far","frown"],["meh-o","far","meh"],["keyboard-o","far","keyboard"],["flag-o","far","flag"],["mail-reply-all",null,"reply-all"],["star-half-o","far","star-half"],["star-half-empty","far","star-half"],["star-half-full","far","star-half"],["code-fork",null,"code-branch"],["chain-broken",null,"unlink"],["shield",null,"shield-alt"],["calendar-o","far","calendar"],["maxcdn","fab",null],["html5","fab",null],["css3","fab",null],["ticket",null,"ticket-alt"],["minus-square-o","far","minus-square"],["level-up",null,"level-up-alt"],["level-down",null,"level-down-alt"],["pencil-square",null,"pen-square"],["external-link-square",null,"external-link-square-alt"],["compass","far",null],["caret-square-o-down","far","caret-square-down"],["toggle-down","far","caret-square-down"],["caret-square-o-up","far","caret-square-up"],["toggle-up","far","caret-square-up"],["caret-square-o-right","far","caret-square-right"],["toggle-right","far","caret-square-right"],["eur",null,"euro-sign"],["euro",null,"euro-sign"],["gbp",null,"pound-sign"],["usd",null,"dollar-sign"],["dollar",null,"dollar-sign"],["inr",null,"rupee-sign"],["rupee",null,"rupee-sign"],["jpy",null,"yen-sign"],["cny",null,"yen-sign"],["rmb",null,"yen-sign"],["yen",null,"yen-sign"],["rub",null,"ruble-sign"],["ruble",null,"ruble-sign"],["rouble",null,"ruble-sign"],["krw",null,"won-sign"],["won",null,"won-sign"],["btc","fab",null],["bitcoin","fab","btc"],["file-text",null,"file-alt"],["sort-alpha-asc",null,"sort-alpha-down"],["sort-alpha-desc",null,"sort-alpha-down-alt"],["sort-amount-asc",null,"sort-amount-down"],["sort-amount-desc",null,"sort-amount-down-alt"],["sort-numeric-asc",null,"sort-numeric-down"],["sort-numeric-desc",null,"sort-numeric-down-alt"],["youtube-square","fab",null],["youtube","fab",null],["xing","fab",null],["xing-square","fab",null],["youtube-play","fab","youtube"],["dropbox","fab",null],["stack-overflow","fab",null],["instagram","fab",null],["flickr","fab",null],["adn","fab",null],["bitbucket","fab",null],["bitbucket-square","fab","bitbucket"],["tumblr","fab",null],["tumblr-square","fab",null],["long-arrow-down",null,"long-arrow-alt-down"],["long-arrow-up",null,"long-arrow-alt-up"],["long-arrow-left",null,"long-arrow-alt-left"],["long-arrow-right",null,"long-arrow-alt-right"],["apple","fab",null],["windows","fab",null],["android","fab",null],["linux","fab",null],["dribbble","fab",null],["skype","fab",null],["foursquare","fab",null],["trello","fab",null],["gratipay","fab",null],["gittip","fab","gratipay"],["sun-o","far","sun"],["moon-o","far","moon"],["vk","fab",null],["weibo","fab",null],["renren","fab",null],["pagelines","fab",null],["stack-exchange","fab",null],["arrow-circle-o-right","far","arrow-alt-circle-right"],["arrow-circle-o-left","far","arrow-alt-circle-left"],["caret-square-o-left","far","caret-square-left"],["toggle-left","far","caret-square-left"],["dot-circle-o","far","dot-circle"],["vimeo-square","fab",null],["try",null,"lira-sign"],["turkish-lira",null,"lira-sign"],["plus-square-o","far","plus-square"],["slack","fab",null],["wordpress","fab",null],["openid","fab",null],["institution",null,"university"],["bank",null,"university"],["mortar-board",null,"graduation-cap"],["yahoo","fab",null],["google","fab",null],["reddit","fab",null],["reddit-square","fab",null],["stumbleupon-circle","fab",null],["stumbleupon","fab",null],["delicious","fab",null],["digg","fab",null],["pied-piper-pp","fab",null],["pied-piper-alt","fab",null],["drupal","fab",null],["joomla","fab",null],["spoon",null,"utensil-spoon"],["behance","fab",null],["behance-square","fab",null],["steam","fab",null],["steam-square","fab",null],["automobile",null,"car"],["envelope-o","far","envelope"],["spotify","fab",null],["deviantart","fab",null],["soundcloud","fab",null],["file-pdf-o","far","file-pdf"],["file-word-o","far","file-word"],["file-excel-o","far","file-excel"],["file-powerpoint-o","far","file-powerpoint"],["file-image-o","far","file-image"],["file-photo-o","far","file-image"],["file-picture-o","far","file-image"],["file-archive-o","far","file-archive"],["file-zip-o","far","file-archive"],["file-audio-o","far","file-audio"],["file-sound-o","far","file-audio"],["file-video-o","far","file-video"],["file-movie-o","far","file-video"],["file-code-o","far","file-code"],["vine","fab",null],["codepen","fab",null],["jsfiddle","fab",null],["life-ring","far",null],["life-bouy","far","life-ring"],["life-buoy","far","life-ring"],["life-saver","far","life-ring"],["support","far","life-ring"],["circle-o-notch",null,"circle-notch"],["rebel","fab",null],["ra","fab","rebel"],["resistance","fab","rebel"],["empire","fab",null],["ge","fab","empire"],["git-square","fab",null],["git","fab",null],["hacker-news","fab",null],["y-combinator-square","fab","hacker-news"],["yc-square","fab","hacker-news"],["tencent-weibo","fab",null],["qq","fab",null],["weixin","fab",null],["wechat","fab","weixin"],["send",null,"paper-plane"],["paper-plane-o","far","paper-plane"],["send-o","far","paper-plane"],["circle-thin","far","circle"],["header",null,"heading"],["sliders",null,"sliders-h"],["futbol-o","far","futbol"],["soccer-ball-o","far","futbol"],["slideshare","fab",null],["twitch","fab",null],["yelp","fab",null],["newspaper-o","far","newspaper"],["paypal","fab",null],["google-wallet","fab",null],["cc-visa","fab",null],["cc-mastercard","fab",null],["cc-discover","fab",null],["cc-amex","fab",null],["cc-paypal","fab",null],["cc-stripe","fab",null],["bell-slash-o","far","bell-slash"],["trash",null,"trash-alt"],["copyright","far",null],["eyedropper",null,"eye-dropper"],["area-chart",null,"chart-area"],["pie-chart",null,"chart-pie"],["line-chart",null,"chart-line"],["lastfm","fab",null],["lastfm-square","fab",null],["ioxhost","fab",null],["angellist","fab",null],["cc","far","closed-captioning"],["ils",null,"shekel-sign"],["shekel",null,"shekel-sign"],["sheqel",null,"shekel-sign"],["meanpath","fab","font-awesome"],["buysellads","fab",null],["connectdevelop","fab",null],["dashcube","fab",null],["forumbee","fab",null],["leanpub","fab",null],["sellsy","fab",null],["shirtsinbulk","fab",null],["simplybuilt","fab",null],["skyatlas","fab",null],["diamond","far","gem"],["intersex",null,"transgender"],["facebook-official","fab","facebook"],["pinterest-p","fab",null],["whatsapp","fab",null],["hotel",null,"bed"],["viacoin","fab",null],["medium","fab",null],["y-combinator","fab",null],["yc","fab","y-combinator"],["optin-monster","fab",null],["opencart","fab",null],["expeditedssl","fab",null],["battery-4",null,"battery-full"],["battery",null,"battery-full"],["battery-3",null,"battery-three-quarters"],["battery-2",null,"battery-half"],["battery-1",null,"battery-quarter"],["battery-0",null,"battery-empty"],["object-group","far",null],["object-ungroup","far",null],["sticky-note-o","far","sticky-note"],["cc-jcb","fab",null],["cc-diners-club","fab",null],["clone","far",null],["hourglass-o","far","hourglass"],["hourglass-1",null,"hourglass-start"],["hourglass-2",null,"hourglass-half"],["hourglass-3",null,"hourglass-end"],["hand-rock-o","far","hand-rock"],["hand-grab-o","far","hand-rock"],["hand-paper-o","far","hand-paper"],["hand-stop-o","far","hand-paper"],["hand-scissors-o","far","hand-scissors"],["hand-lizard-o","far","hand-lizard"],["hand-spock-o","far","hand-spock"],["hand-pointer-o","far","hand-pointer"],["hand-peace-o","far","hand-peace"],["registered","far",null],["creative-commons","fab",null],["gg","fab",null],["gg-circle","fab",null],["tripadvisor","fab",null],["odnoklassniki","fab",null],["odnoklassniki-square","fab",null],["get-pocket","fab",null],["wikipedia-w","fab",null],["safari","fab",null],["chrome","fab",null],["firefox","fab",null],["opera","fab",null],["internet-explorer","fab",null],["television",null,"tv"],["contao","fab",null],["500px","fab",null],["amazon","fab",null],["calendar-plus-o","far","calendar-plus"],["calendar-minus-o","far","calendar-minus"],["calendar-times-o","far","calendar-times"],["calendar-check-o","far","calendar-check"],["map-o","far","map"],["commenting",null,"comment-dots"],["commenting-o","far","comment-dots"],["houzz","fab",null],["vimeo","fab","vimeo-v"],["black-tie","fab",null],["fonticons","fab",null],["reddit-alien","fab",null],["edge","fab",null],["credit-card-alt",null,"credit-card"],["codiepie","fab",null],["modx","fab",null],["fort-awesome","fab",null],["usb","fab",null],["product-hunt","fab",null],["mixcloud","fab",null],["scribd","fab",null],["pause-circle-o","far","pause-circle"],["stop-circle-o","far","stop-circle"],["bluetooth","fab",null],["bluetooth-b","fab",null],["gitlab","fab",null],["wpbeginner","fab",null],["wpforms","fab",null],["envira","fab",null],["wheelchair-alt","fab","accessible-icon"],["question-circle-o","far","question-circle"],["volume-control-phone",null,"phone-volume"],["asl-interpreting",null,"american-sign-language-interpreting"],["deafness",null,"deaf"],["hard-of-hearing",null,"deaf"],["glide","fab",null],["glide-g","fab",null],["signing",null,"sign-language"],["viadeo","fab",null],["viadeo-square","fab",null],["snapchat","fab",null],["snapchat-ghost","fab",null],["snapchat-square","fab",null],["pied-piper","fab",null],["first-order","fab",null],["yoast","fab",null],["themeisle","fab",null],["google-plus-official","fab","google-plus"],["google-plus-circle","fab","google-plus"],["font-awesome","fab",null],["fa","fab","font-awesome"],["handshake-o","far","handshake"],["envelope-open-o","far","envelope-open"],["linode","fab",null],["address-book-o","far","address-book"],["vcard",null,"address-card"],["address-card-o","far","address-card"],["vcard-o","far","address-card"],["user-circle-o","far","user-circle"],["user-o","far","user"],["id-badge","far",null],["drivers-license",null,"id-card"],["id-card-o","far","id-card"],["drivers-license-o","far","id-card"],["quora","fab",null],["free-code-camp","fab",null],["telegram","fab",null],["thermometer-4",null,"thermometer-full"],["thermometer",null,"thermometer-full"],["thermometer-3",null,"thermometer-three-quarters"],["thermometer-2",null,"thermometer-half"],["thermometer-1",null,"thermometer-quarter"],["thermometer-0",null,"thermometer-empty"],["bathtub",null,"bath"],["s15",null,"bath"],["window-maximize","far",null],["window-restore","far",null],["times-rectangle",null,"window-close"],["window-close-o","far","window-close"],["times-rectangle-o","far","window-close"],["bandcamp","fab",null],["grav","fab",null],["etsy","fab",null],["imdb","fab",null],["ravelry","fab",null],["eercast","fab","sellcast"],["snowflake-o","far","snowflake"],["superpowers","fab",null],["wpexplorer","fab",null],["cab",null,"taxi"]];return function(l){try{l()}catch(l){if(!t)throw l}}(function(){var l;"function"==typeof i.hooks.addShims?i.hooks.addShims(s):(l=i.shims).push.apply(l,s)}),s},"object"==typeof exports&&"undefined"!=typeof module?module.exports=a():"function"==typeof define&&define.amd?define(a):l["fontawesome-free-shims"]=a()})() ;var astraGetParents=function(e,t){Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),a=t.length;0<=--a&&t.item(a)!==this;);return-1{function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var a=document.createEvent("CustomEvent");return a.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),a}"function"!=typeof window.CustomEvent&&(e.prototype=window.Event.prototype,window.CustomEvent=e)})(),function(e,t){t=new CustomEvent(t,2e.offsetHeight+100?t.style.display="block":t.style.display="none":300{var r=document.querySelectorAll("#masthead .main-header-menu-toggle"),c=document.getElementById("masthead"),i={},d="",u=document.body,m="";function e(e){d=e.detail.type;var t=document.querySelectorAll(".menu-toggle");if("dropdown"===d&&(document.getElementById("ast-mobile-popup").classList.remove("active","show"),g("updateHeader")),"off-canvas"===d)for(var a=0;a{e.classList.remove("ast-submenu-expanded"),Array.from(e.querySelectorAll(".sub-menu")).forEach(e=>{e.hasAttribute("data-initial-display")||e.setAttribute("data-initial-display",window.getComputedStyle(e).display),"block"===e.getAttribute("data-initial-display")?e.style.display="block":e.style.display="none"})});var t=document.querySelectorAll(".menu-toggle");document.body.classList.remove("ast-main-header-nav-open","ast-popup-nav-open"),document.documentElement.classList.remove("ast-off-canvas-active");for(var a=0;a #ast-desktop-header .ast-desktop-header-content"),n=document.querySelector(".elementor-editor-active"),a&&(a.style.display="none"),(null!==navigator.userAgent.match(/Android/i)&&"Android"===navigator.userAgent.match(/Android/i)[0]?window.visualViewport.width:window.innerWidth)!==o&&(t&&null===n&&t.click(),document.body.classList.remove("ast-main-header-nav-open","ast-popup-nav-open"),e)&&null==n&&e.click(),v(),AstraToggleSetup())}),document.addEventListener("DOMContentLoaded",function(){if(AstraToggleSetup(),null!==(e=u.classList.contains("ast-header-break-point")?document.getElementById("ast-mobile-header"):document.getElementById("ast-desktop-header"))){var e,t=e.querySelector(".navigation-accessibility");if(t&&e){var a=e.getElementsByTagName("button")[0];if(void 0===a){if(!0===(a=e.getElementsByTagName("a")[0]).classList.contains("astra-search-icon"))return;if(void 0===a)return}var n=t.getElementsByTagName("ul")[0];if(void 0===n)a.style.display="none";else{if(-1===n.className.indexOf("nav-menu")&&(n.className+=" nav-menu"),document.addEventListener("DOMContentLoaded",function(){var e;"off-canvas"===d&&(e=document.getElementById("menu-toggle-close"))&&(e.onclick=function(){-1!==t.className.indexOf("toggled")?(t.className=t.className.replace(" toggled",""),a.setAttribute("aria-expanded","false"),n.setAttribute("aria-expanded","false")):(t.className+=" toggled",a.setAttribute("aria-expanded","true"),n.setAttribute("aria-expanded","true"))})}),a.onclick=function(){-1!==t.className.indexOf("toggled")?(t.className=t.className.replace(" toggled",""),a.setAttribute("aria-expanded","false"),n.setAttribute("aria-expanded","false")):(t.className+=" toggled",a.setAttribute("aria-expanded","true"),n.setAttribute("aria-expanded","true"))},!astra.is_header_footer_builder_active){for(var o=n.getElementsByTagName("a"),s=n.getElementsByTagName("ul"),r=0,l=s.length;r{let t=document.querySelectorAll("nav.site-navigation .menu-item-has-children > a .ast-header-navigation-arrow"),a=document.querySelectorAll("nav.site-navigation .sub-menu"),n=document.querySelectorAll("nav.site-navigation .menu-item-has-children"),o=document.querySelectorAll(".astra-full-megamenu-wrapper");t&&(t.forEach(e=>{e.addEventListener("keydown",function(a){"Enter"===a.key&&(a.target.closest("li").querySelector(".sub-menu").classList.contains("astra-megamenu")?setTimeout(()=>{var e=a.target.closest("li").querySelector(".sub-menu"),t=a.target.closest("li").querySelector(".astra-full-megamenu-wrapper");e&&e.classList.toggle("astra-megamenu-focus"),t&&t.classList.toggle("astra-megamenu-wrapper-focus"),a.target.closest("li").classList.toggle("ast-menu-hover"),"false"!==a.target.getAttribute("aria-expanded")&&a.target.getAttribute("aria-expanded")?a.target.setAttribute("aria-expanded","false"):a.target.setAttribute("aria-expanded","true")},10):setTimeout(()=>{a.target.closest("li").querySelector(".sub-menu").classList.toggle("toggled-on"),a.target.closest("li").classList.toggle("ast-menu-hover"),"false"!==a.target.getAttribute("aria-expanded")&&a.target.getAttribute("aria-expanded")?a.target.setAttribute("aria-expanded","false"):a.target.setAttribute("aria-expanded","true")},10))})}),(a||n)&&document.addEventListener("click",function(e){b(a,t,n,o)},!1),a||n)&&document.addEventListener("keydown",function(e){"Escape"===e.key&&b(a,t,n,o)},!1);var e=document.querySelectorAll("nav.site-navigation .ast-nav-menu > .menu-item-has-children > a .ast-header-navigation-arrow");e&&e.forEach(e=>{e.addEventListener("keydown",function(e){e.target.closest("li").classList.contains("ast-menu-hover")||"Enter"!==e.key||b(a,t,n,o)},!1)})})()}}}});for(var t,a,s,l,v=function(){var e=u.style.overflow,t=(u.style.overflow="hidden",document.documentElement.clientWidth);if(u.style.overflow=e,astra.break_point .menu-link, ul.main-header-menu .ast-menu-toggle"):t[r].querySelectorAll("ul.main-header-menu .ast-menu-toggle")).length)for(var l=0;l #ast-mobile-header .main-header-bar-navigation"),t=(r=document.querySelectorAll("#masthead > #ast-mobile-header .main-header-menu-toggle"),"0");if(null!==this.closest("#ast-fixed-header")&&(e=document.querySelectorAll("#ast-fixed-header > #ast-mobile-header .main-header-bar-navigation"),r=document.querySelectorAll("#ast-fixed-header .main-header-menu-toggle"),t="0"),void 0===e[t])return!1;for(var a=e[t].querySelectorAll(".menu-item-has-children"),n=0;n{e.classList.remove("astra-megamenu-focus"),e.classList.remove("toggled-on")}),a&&a.forEach(e=>{e.classList.remove("ast-menu-hover")}),n&&n.forEach(e=>{e.classList.remove("astra-megamenu-wrapper-focus")}),t&&t.forEach(e=>{e.setAttribute("aria-expanded","false")})}function L(){var e=this||"";if(e&&!e.classList.contains("astra-search-icon")&&null===e.closest(".ast-builder-menu")&&-1!==String(e).indexOf("#")){var t=e.parentNode;if(u.classList.contains("ast-header-break-point"))document.querySelector("header.site-header").classList.contains("ast-builder-menu-toggle-link")&&t.classList.contains("menu-item-has-children")||(document.querySelector(".main-header-menu-toggle").classList.remove("toggled"),(t=document.querySelector(".main-header-bar-navigation")).classList.remove("toggle-on"),t.style.display="none",astraTriggerEvent(document.querySelector("body"),"astraMenuHashLinkClicked"));else for(;-1===e.className.indexOf("nav-menu");)"li"===e.tagName.toLowerCase()&&-1!==e.className.indexOf("focus")&&(e.className=e.className.replace(" focus","")),e=e.parentElement}}function E(){for(var e=this;-1===e.className.indexOf("navigation-accessibility");)"li"===e.tagName.toLowerCase()&&e.classList.toggle("focus"),e=e.parentElement}if(document.querySelectorAll(".search-field").forEach(e=>{e.addEventListener("focus",function(e){var t=this.parentNode.parentNode.parentNode.querySelector(".ast-search-menu-icon");t&&astraToggleClass(t,"ast-dropdown-active")}),e.addEventListener("blur",function(e){var t=this.parentNode.parentNode.parentNode.querySelector(".ast-search-menu-icon");t&&(t.classList.remove("ast-dropdown-active"),astraToggleClass(t,"ast-dropdown-active"))})}),u.onclick=function(e){if(void 0!==e.target.classList&&!e.target.classList.contains("ast-search-menu-icon")&&0===astraGetParents(e.target,".ast-search-menu-icon").length&&0===astraGetParents(e.target,".ast-search-icon").length)for(var t=document.getElementsByClassName("ast-search-menu-icon"),a=0;a{let t=0;for(;e;)t+=e.offsetTop,e=e.offsetParent;return t};var k=e=>{let t=0;var a=document.querySelector(".site-header");a&&((a=a.querySelectorAll("div[data-stick-support]"))&&a.forEach(e=>{t+=e.clientHeight}),a=e.target.closest("a").hash)&&(a=document.querySelector(a))&&(a=o(a)-t)&&astraSmoothScroll(e,a)};let t=[];var S=document.querySelectorAll('a[href*="#"]:not([href="#"]):not([href="#0"]):not([href*="uagb-tab"]):not(.uagb-toc-link__trigger):not(.skip-link):not(.nav-links a):not([href*="tab-"])');if(S)for(let e of S)e.href.split("#")[0]!==location.href.split("#")[0]?t.push({hash:e.hash,url:e.href.split("#")[0]}):""!==e.hash&&e.addEventListener("click",k);window.addEventListener("DOMContentLoaded",e=>{for(var a of t)if(window.location.href.split("#")[0]===a.url){var n=document.querySelector(".site-header");let t=0;n=n.querySelectorAll("div[data-stick-support]"),n=(n&&n.forEach(e=>{t+=e.clientHeight}),document.querySelector(a.hash));n&&(a=o(n)-t)&&astraSmoothScroll(e,a)}})}astra.is_scroll_to_top&&(s=document.querySelector("#page header"),l=document.getElementById("ast-scroll-top"),astScrollToTopHandler(s,l),window.addEventListener("scroll",function(){astScrollToTopHandler(s,l)}),l.onclick=function(e){astraSmoothScroll(e,0)},l.addEventListener("keydown",function(e){"Enter"===e.key&&astraSmoothScroll(e,0)})),window.addEventListener("DOMContentLoaded",e=>{var t=document.querySelector(".ast-woocommerce-store-notice-hanged");let a=()=>{var e=document.querySelector('.woocommerce-store-notice[data-position="hang-over-top"]');document.body.style.marginTop=`${e?.clientHeight||0}px`};t&&(window.addEventListener("resize",a),setTimeout(()=>a(),0)),document.querySelector(".woocommerce-store-notice__dismiss-link")?.addEventListener("click",()=>{wp?.customize||(document.body.classList.remove("ast-woocommerce-store-notice-hanged"),window.removeEventListener("resize",a),document.body.style.marginTop=0)})})})(),document.addEventListener("DOMContentLoaded",function(){function t(e){var e=e.closest(".menu-link"),t=e.nextElementSibling.classList.contains("toggled-on");e.setAttribute("aria-expanded",t?"true":"false")}document.querySelectorAll(".menu-link .dropdown-menu-toggle").forEach(e=>{e.addEventListener("focus",function(){t(this)}),e.addEventListener("blur",function(){t(this)}),e.addEventListener("keydown",function(e){var t;"Enter"===e.key&&(e=(e=this).closest(".menu-link"),t=e.getAttribute("aria-expanded"),e.setAttribute("aria-expanded","true"===t?"false":"true"))})}),document.addEventListener("keydown",function(e){"Escape"===e.key&&document.querySelectorAll(".menu-link .dropdown-menu-toggle").forEach(function(e){t(e)})})}),document.addEventListener("DOMContentLoaded",()=>{document.querySelectorAll(".astra-shop-thumbnail-wrap").forEach(t=>{let a=t.querySelectorAll("a, span");a.forEach(e=>{e.addEventListener("focus",()=>{t.querySelectorAll(".ast-on-card-button, .ast-quick-view-trigger").forEach(e=>{e.style.opacity="1",e.style.visibility="visible",e.style.borderStyle="none"})}),e.addEventListener("blur",()=>{Array.from(a).some(e=>e===document.activeElement)||t.querySelectorAll(".ast-on-card-button, .ast-quick-view-trigger").forEach(e=>{e.style.opacity="",e.style.visibility=""})})})})}) ;var ewww_webp_supported;void 0===ewww_webp_supported&&(ewww_webp_supported=!1),window.lazySizesConfig=window.lazySizesConfig||{},window.lazySizesConfig.expand=500a.offsetWidth&&1a&&(a=e.w,i=e.h),a=n.clientWidth&&1.25*n.clientWidth*t=n&&(F=d.top)<=q&&(D=d.right)>=n*c&&(J=d.left)<=P&&($||D||J||F)&&(h.loadHidden||ne(u[t]))&&(j&&ie<3&&!o&&(B<3||re<4)||function(e,t){var a,i=e,r=ne(e);for(F-=t,$+=t,J-=t,D+=t;r&&(i=i.offsetParent)&&i!=f.body&&i!=p;)(r=0<(N(i,"opacity")||1))&&"visible"!=N(i,"overflow")&&(a=i.getBoundingClientRect(),r=D>a.left&&Ja.top-1&&F .elementor-widget-container"),n=0;i.each(function(){n=Math.max(n,e(this).outerHeight())}),i.css({minHeight:n+"px"})}else{let r=0;setTimeout(function(){t.find(o).each(function(){r=Math.max(r,e(this).outerHeight())}),t.find(o).css({minHeight:r+"px"})},100)}})},BackgroundOverlay:function e(t){t.hasClass("elementor-element-edit-mode")&&t.addClass("xpro-widget-bg-overlay")},getElementSettings:function(e,t){var i={},n=e.data("model-cid");if(elementorFrontend.isEditMode()&&n){var r=elementorFrontend.config.elements.data[n],a=r.attributes.widgetType||r.attributes.elType,l=elementorFrontend.config.elements.keys[a];l||(l=elementorFrontend.config.elements.keys[a]=[],jQuery.each(r.controls,function(e,t){t.frontend_available&&l.push(e)})),jQuery.each(r.getActiveControls(),function(e){-1!==l.indexOf(e)&&(i[e]=r.attributes[e])})}else i=e.data("settings")||{};return o.getItems(i,t)},getItems:function(e,t){if(t){var o=t.split("."),i=o.splice(0,1);if(!o.length)return e[i];if(!e[i])return;return this.getItems(e[i],o.join("."))}return e},SimpleGallery:function(t){let i=o.getElementSettings(t),n=t.find(".xpro-elementor-gallery-wrapper"),r=t.find(".xpro-elementor-gallery-filter > ul"),a=r.attr("data-default-filter");setTimeout(function(){n.cubeportfolio({filters:r,layoutMode:"grid",defaultFilter:a,animationType:i.filter_animation,gridAdjustment:"responsive",mediaQueries:[{width:elementorFrontend.config.breakpoints.lg,cols:i.item_per_row||3,options:{gapHorizontal:i.margin.size||0,gapVertical:i.margin.size||0}},{width:elementorFrontend.config.breakpoints.md,cols:i.item_per_row_tablet||2,options:{gapHorizontal:i.margin_tablet.size||0,gapVertical:i.margin_tablet.size||0}},{width:0,cols:i.item_per_row_mobile||1,options:{gapHorizontal:i.margin_mobile.size||0,gapVertical:i.margin_mobile.size||0}},],caption:i.hover_effect||"zoom",displayType:"sequentially",displayTypeSpeed:80})},500),"none"!==i.popup&&n.lightGallery({pager:!0,addClass:"xpro-gallery-popup-style-"+i.popup,selector:"[data-xpro-lightbox]",thumbnail:"yes"===i.thumbnail,exThumbImage:"data-src",thumbWidth:130,thumbMargin:15,closable:!1,showThumbByDefault:"yes"===i.thumbnail_by_default,thumbContHeight:150,subHtmlSelectorRelative:!0,hideBarsDelay:99999999,share:"yes"===i.share,download:"yes"===i.download});let l=t.find(".xpro-filter-dropdown-tablet,.xpro-filter-dropdown-mobile"),s=t.find('[data-filter="'+a+'"]'),p=l.find("li.cbp-filter-item-active").text();l.find(".xpro-select-content").text(p||s.text()),l.on("click",function(){e(this).toggleClass("active")}),l.find(".cbp-l-filters-button > li").on("click",function(){l.find(".xpro-select-content").text(e(this).text())})},SimplePortfolio:function(t){let i=o.getElementSettings(t),n=t.find(".xpro-elementor-gallery-wrapper"),r=t.find(".xpro-elementor-gallery-filter > ul"),a=r.attr("data-default-filter");u(),setTimeout(function(){n.cubeportfolio({filters:r,layoutMode:"grid",defaultFilter:a,animationType:i.filter_animation,gridAdjustment:"responsive",lightboxGallery:!1,mediaQueries:[{width:elementorFrontend.config.breakpoints.lg,cols:i.item_per_row||3,options:{gapHorizontal:i.margin.size||0,gapVertical:i.margin.size||0}},{width:elementorFrontend.config.breakpoints.md,cols:i.item_per_row_tablet||2,options:{gapHorizontal:i.margin_tablet.size||0,gapVertical:i.margin_tablet.size||0}},{width:0,cols:i.item_per_row_mobile||1,options:{gapHorizontal:i.margin_mobile.size||0,gapVertical:i.margin_mobile.size||0}},],caption:i.hover_effect||"zoom",displayType:"sequentially",displayTypeSpeed:80})},500);let l=t.find(".xpro-filter-dropdown-tablet,.xpro-filter-dropdown-mobile"),s=t.find('[data-filter="'+a+'"]'),p=l.find("li.cbp-filter-item-active").text();l.find(".xpro-select-content").text(p||s.text()),l.on("click",function(){e(this).toggleClass("active")}),l.find(".cbp-l-filters-button > li").on("click",function(){l.find(".xpro-select-content").text(e(this).text())});var d=null;let c=new TimelineLite;function f(o,i){let n=e(o).data("title");"false"!==(d=e(o).data("src-preview"))&&(e(o).siblings().removeClass("xpro-preview-demo-item-open"),e(o).addClass("xpro-preview-demo-item-open"),t.find(".xpro-preview .xpro-preview-prev-demo,.xpro-preview .xpro-preview-next-demo").removeClass("xpro-preview-inactive"),e(o).prev("[data-src-preview]").length<=0&&t.find(".xpro-preview .xpro-preview-prev-demo").addClass("xpro-preview-inactive"),e(o).next("[data-src-preview]").length<=0&&t.find(".xpro-preview .xpro-preview-next-demo").addClass("xpro-preview-inactive"),t.find(".xpro-preview .xpro-preview-header-info").html(""),n&&t.find(".xpro-preview .xpro-preview-header-info").append(`
${n}
`),t.find(".xpro-preview .xpro-preview-iframe").attr("src",d),e("body").addClass("xpro-preview-active"),t.find(".xpro-preview").addClass("active"))}function u(){t.find(".xpro-preview-demo-item").removeClass("xpro-preview-demo-item-open"),t.find(".xpro-preview .xpro-preview-iframe").removeAttr("src"),e("body").removeClass("xpro-preview-active"),t.find(".xpro-preview").removeClass("active")}function m(){"1"===i.popup_animation&&c.to(t.find(".xpro-portfolio-loader-style-1 li"),{duration:.4,scaleX:1,transformOrigin:"bottom right"}),"2"===i.popup_animation&&c.to(t.find(".xpro-portfolio-loader-style-2 li"),{duration:.4,scaleX:1,transformOrigin:"bottom left"}),setTimeout(function(){"1"===i.popup_animation&&c.to(t.find(".xpro-portfolio-loader-style-1 li"),{duration:.4,scaleX:0,transformOrigin:"bottom left"}),"2"===i.popup_animation&&c.to(t.find(".xpro-portfolio-loader-style-2 li"),{duration:.4,scaleX:0,transformOrigin:"bottom right"})},2500)}c.seek(0).clear(),c=new TimelineLite,t.find(".xpro-preview-iframe").on("load",function(){e(this).addClass("loaded"),e(this).contents().find("html").attr("id","xpro-portfolio-html-main")}),t.on("click",".xpro-preview-type-popup",function(t){e(t.target).is(".xpro-preview-demo-import-open")||(m(),f(this,t))}),t.on("click",".xpro-preview-type-link",function(t){let o="";return""!==(o=e(this).data("src-preview"))&&window.open(o,i.preview_target),!1}),t.on("click",".xpro-preview-type-none",function(e){return!1}),t.on("click",".xpro-preview-prev-demo",function(e){var o=t.find(".xpro-preview-demo-item-open").prev("[data-src-preview]");o.length>0&&(m(),f(o,e)),e.preventDefault()}),t.on("click",".xpro-preview-next-demo",function(e){var o=t.find(".xpro-preview-demo-item-open").next("[data-src-preview]");o.length>0&&(m(),f(o,e)),e.preventDefault()}),t.on("click",".xpro-preview-close",function(e){e.preventDefault(),e.stopPropagation(),m(),setTimeout(function(){u()},2e3)})},ProgressBar:function(t){let i=o.getElementSettings(t),n=t.find(".xpro-progress-count"),r=t.find(".xpro-progress-track");t.find(".xpro-progress-bar").elementorWaypoint(function(){"yes"===i.show_count&&n.animate({Counter:i.value},{duration:1e3*i.duration.size||3e3,easing:"swing",step:function(t){e(this).text(Math.ceil(t)),e(this).parents(".xpro-progress-counter").find(".xpro-progress-count-less").text(100-Math.ceil(t))}}),r.animate({width:i.value+"%"},1e3*i.duration.size||3e3)},{offset:"100%"})},PieChart:function(t){let i=o.getElementSettings(t);t.find(".xpro-pie-chart").easyPieChart({scaleColor:"transparent",lineWidth:i.chart_bar_size.size,lineCap:i.layout,barColor:function(){var e=this.renderer.getCtx(),t=this.renderer.getCanvas(),o=e.createLinearGradient(0,0,t.width,0);return o.addColorStop(0,i.bar_color_1||"#6ec1e4"),o.addColorStop(1,i.bar_color_2||"#6ec1e4"),o},trackColor:i.track_color||"#f5f5f5",size:i.chart_size.size,rotate:0,animate:1e3*i.duration.size||2e3}),t.find(".xpro-pie-chart").elementorWaypoint(function(){t.find(".xpro-pie-chart-count").animate({Counter:i.value},{duration:1e3*i.duration.size||2e3,easing:"swing",step:function(t){e(this).text(Math.ceil(t)+"%")}}),t.find(".xpro-pie-chart").data("easyPieChart").update(i.value)},{offset:"100%"})},Counter:function(t){let i=o.getElementSettings(t);"yes"===i.animate_counter&&new Waypoint({element:t.find(".xpro-counter-wrapper")[0],handler:function(){t.find(".xpro-counter-item > .value").animate({Counter:i.value},{duration:1e3*i.duration.size||2e3,easing:"swing",step:function(t){e(this).text(Math.ceil(t))}}),this.destroy()},offset:"100%"})},HorizontalMenu:function(t){let i=o.getElementSettings(t),n=t.find(".xpro-elementor-horizontal-menu-toggler"),r=t.find(".xpro-elementor-horizontal-menu-close"),a=t.find(".xpro-elementor-horizontal-menu-overlay"),l=t.find(".dropdown > a > .xpro-dropdown-menu-toggle");if(t.find(".dropdown li").each(function(t){if(e("ul",this).length){let o=e("ul:first",this);o.offset().left+o.width()<=e(window).width()?e(this).removeClass("xpro-edge"):e(this).addClass("xpro-edge")}}),"yes"===i.one_page_navigation){function s(o=!1){var n=e(document).scrollTop(),r=i.scroll_offset.size||100;t.find(".xpro-elementor-horizontal-navbar-nav li").each(function(){let i=e(this),a=i.find(".xpro-elementor-nav-link").attr("href"),l=a.indexOf("#");if(-1!==l){let s=e(a.substring(l));o&&s.length&&t.find(".xpro-elementor-horizontal-navbar-nav li:not(:first-child)").removeClass("current_page_item"),s.length&&s.position().top-r<=n&&s.position().top+s.height()>n&&(t.find(".xpro-elementor-horizontal-navbar-nav li").removeClass("current_page_item"),i.addClass("current_page_item"))}})}e(".xpro-elementor-nav-link").on("click",function(t){let o=e(this).attr("href"),n=o.indexOf("#");if(-1!==n){let r=e(o.substring(n));if(r.length){var a=this.hash;t.stopPropagation(),e("html, body").animate({scrollTop:e(r).offset().top-(i.scroll_offset.size||100)+20},500,function(){window.location.hash=a})}}}),s(!0),e(document).on("scroll",function(){s()})}if("none"!==i.responsive_show){let p="tablet"===i.responsive_show?1025:768;n.on("click",function(e){e.preventDefault(),t.find(".xpro-elementor-horizontal-navbar-wrapper").toggleClass("active"),t.find(".xpro-elementor-horizontal-menu-overlay").toggleClass("active")}),r.on("click",function(e){e.preventDefault(),t.find(".xpro-elementor-horizontal-navbar-wrapper").removeClass("active"),t.find(".xpro-elementor-horizontal-menu-overlay").removeClass("active")}),a.on("click",function(o){o.preventDefault(),t.find(".xpro-elementor-horizontal-navbar-wrapper").removeClass("active"),e(this).removeClass("active")}),l.on("click",function(t){e(window).width()p?t.find(".xpro-elementor-dropdown-menu").show():t.find(".xpro-elementor-dropdown-menu").hide(),t.find(".xpro-elementor-horizontal-navbar-wrapper").removeClass("active"),t.find(".xpro-elementor-horizontal-menu-overlay").removeClass("active"),t.find(".dropdown > a").removeClass("active")})}},Team:function(t){let i=o.getElementSettings(t);if("3"===i.layout&&t.find(".xpro-team-layout-3").hover(function(){e(this).find(".xpro-team-description").slideDown(200)},function(){e(this).find(".xpro-team-description").slideUp(200)}),"7"===i.layout&&t.find(".xpro-team-layout-7").hover(function(){e(this).find(".xpro-team-description").slideDown(200),e(this).find(".xpro-team-social-list").slideDown(250)},function(){e(this).find(".xpro-team-description").slideUp(200),e(this).find(".xpro-team-social-list").slideUp(250)}),"8"===i.layout&&t.find(".xpro-team-layout-8").hover(function(){e(this).find(".xpro-team-content").slideDown(200)},function(){e(this).find(".xpro-team-content").slideUp(200)}),"9"===i.layout){let n=t.find(".xpro-team-image > img").height(),r=t.find(".xpro-team-inner-content").height();t.find(".xpro-team-inner-content").width(n),t.find(".xpro-team-inner-content").css("left",r+"px")}"14"===i.layout&&t.find(".xpro-team-layout-14").hover(function(){e(this).find(".xpro-team-description").slideDown(200),e(this).find(".xpro-team-social-list").slideDown(250)},function(){e(this).find(".xpro-team-description").slideUp(200),e(this).find(".xpro-team-social-list").slideUp(250)})},BeforeAfter:function(e){let t=o.getElementSettings(e);e.find(".xpro-compare-item").XproCompare({default_offset_pct:t.visible_ratio.size/100||.5,orientation:t.orientation,is_wiggle:"yes"===t.wiggle,wiggle_timeout:t.wiggle?1e3*t.wiggle_timeout.size:1e3,move_on_hover:"yes"===t.mouse_move})},ContentToggle:function(t){o.getElementSettings(t),t.find(".xpro-content-toggle-button").on("click",function(t){t.preventDefault(),e(this).parents(".xpro-content-toggle-button-wrapper").toggleClass("active")})},NewsTicker:function(t){let i=o.getElementSettings(t),n=t.find(".xpro-news-ticker"),r;e(".e-route-panel-editor-content").length&&(r=".elementor-preview-responsive-wrapper"),n.owlCarousel({items:1,smartSpeed:1e3,loop:!0,nav:!1,dots:!1,mouseDrag:!1,touchDrag:!1,rtl:"rtl"===i.direction,responsiveBaseElement:r,autoplay:"yes"===i.autoplay,autoplayTimeout:"yes"===i.autoplay?1e3*i.autoplay_timeout.size:3e3,animateOut:"fade"===i.effect&&"fadeOut",animateIn:"fade"===i.effect&&"fadeIn"}),t.find(".xpro-news-ticker-next").click(function(){n.trigger("next.owl.carousel",[1e3]),t.find(".xpro-news-ticker-pause").find("i").removeClass("fa-pause"),t.find(".xpro-news-ticker-pause").find("i").addClass("fa-play"),t.find(".xpro-news-ticker-pause").addClass("active"),n.trigger("stop.owl.autoplay")}),t.find(".xpro-news-ticker-prev").click(function(){n.trigger("prev.owl.carousel",[1e3]),t.find(".xpro-news-ticker-pause").find("i").removeClass("fa-pause"),t.find(".xpro-news-ticker-pause").find("i").addClass("fa-play"),t.find(".xpro-news-ticker-pause").addClass("active"),n.trigger("stop.owl.autoplay")}),t.find(".xpro-news-ticker-close").click(function(){t.find(".xpro-news-ticker-wrapper").fadeOut("slow")})},Table:function(t){let o=t.find(".xpro-table-head-column-cell");t.find(".xpro-table-body-row").each(function(t,i){e(i).find(".xpro-table-body-row-cell").each(function(t,i){e(i).prev().prop("colspan")>1&&0!==e(i).prop("colspan")&&(t+=e(i).prev().prop("colspan")-1),e(i).prepend('
'+o.eq(t).html()+"
")})})},IconBox:function(e){let t=o.getElementSettings(e),i=e.find(".elementor-widget-container"),n=e.find(".xpro-box-icon-item"),r="",a=e.find("#xpro-icon-box-lottie");""!==t.hover_animation&&i.hover(function(){n.addClass("animated "+t.icon_hover_animation)},function(){n.removeClass("animated "+t.icon_hover_animation)}),t.lottie_url?r=t.lottie_url.url:t.svg_upload&&(r=t.svg_upload.url),lottie.loadAnimation({container:a[0],renderer:"svg",loop:t.loop||!0,autoplay:t.autoplay||!0,path:r})},PostGrid:function(e){let t=o.getElementSettings(e),i=e.find(".xpro-post-grid-main");e.find(".xpro-post-grid-item"),i.cubeportfolio({layoutMode:"grid",gridAdjustment:"responsive",lightboxGallery:!1,mediaQueries:[{width:elementorFrontend.config.breakpoints.lg,cols:t.column_grid||3,options:{gapHorizontal:t.space_between.size,gapVertical:t.space_between.size}},{width:elementorFrontend.config.breakpoints.md,cols:t.column_grid_tablet||2,options:{gapHorizontal:t.space_between_tablet.size||0,gapVertical:t.space_between_tablet.size||0}},{width:0,cols:t.column_grid_mobile||1,options:{gapHorizontal:t.space_between_mobile.size||0,gapVertical:t.space_between_mobile.size||0}},],displayType:"default",displayTypeSpeed:0})},HotSpot:function(t){o.getElementSettings(t),t.find(".xpro-post-grid-main"),t.find(".xpro-hotspot-type-click").on("click",function(t){t.preventDefault(),e(this).find(".xpro-hotspot-tooltip-text").toggleClass("active")})},ImageScroller:function(e){let t=o.getElementSettings(e),i=e.find(".xpro-scroll-image-inner"),n=e.find(".xpro-image-scroll-img > img"),r=0;"mouse-hover"===t.trigger_type&&i.imagesLoaded(function(){r="vertical"===t.direction_type?n.height()-i.height():n.width()-i.width(),"yes"===t.reverse?(n.css("transform",("vertical"===t.direction_type?"translateY":"translateX")+"( -"+r+"px)"),i.hover(function(){n.css("transform",("vertical"===t.direction_type?"translateY":"translateX")+"(0px)")},function(){n.css("transform",("vertical"===t.direction_type?"translateY":"translateX")+"( -"+r+"px)")})):i.hover(function(){n.css("transform",("vertical"===t.direction_type?"translateY":"translateX")+"( -"+r+"px)")},function(){n.css("transform",("vertical"===t.direction_type?"translateY":"translateX")+"(0px)")})})},HorizontalTimeline:function(t){let i=o.getElementSettings(t),n=t.find(".xpro-horizontal-timeline"),r,a=767;function l(){if("yes"===i.reverse&&e(window).width()>=a){let o=t.find(".xpro-horiz-equal-height > div"),n=0;o.each(function(){n=Math.max(n,e(this).outerHeight())}),o.parent().css({minHeight:n+"px"})}else{let r=t.find(".xpro-horizontal-timeline-content > div"),l=0;r.each(function(){l=Math.max(l,e(this).outerHeight())}),r.parent().css({minHeight:l+"px"});let s=t.find(".xpro-horizontal-timeline-date > div"),p=0;s.each(function(){p=Math.max(p,e(this).outerHeight())}),s.parent().css({minHeight:p+"px"})}}e(".e-route-panel-editor-content").length&&(r=".elementor-preview-responsive-wrapper"),e(".elementor-editor-active").length&&(a=750),n.owlCarousel({loop:"yes"===i.loop,center:"yes"===i.center,nav:"yes"===i.nav,navText:["",""],dots:"yes"===i.dots,mouseDrag:"yes"===i.mouse_drag,rtl:"yes"===i.rtl,touchDrag:!0,autoHeight:!1,autoWidth:"yes"===i.custom_width,responsiveBaseElement:r,autoplay:"yes"===i.autoplay,autoplayTimeout:"yes"===i.autoplay?1e3*i.autoplay_timeout.size:3e3,autoplayHoverPause:!0,smartSpeed:500,responsive:{0:{items:i.item_per_row_mobile||1},768:{items:i.item_per_row_tablet||1},1024:{items:i.item_per_row||2}}}),setTimeout(function(){l()},300),e(window).on("resize",function(){setTimeout(function(){l()},500)})},ContactForm:function(t){let i=o.getElementSettings(t),n=t.find(".xpro-contact-form"),r=(t.find(".xpro-contact-form-submit-button"),t.find(".xpro-contact-form-submit-button > i")),a=!1,l=n.attr("action");n.on("submit",function(o){o.preventDefault(),r.show();let s=n.serializeArray(),p=[],d=!0,c=null,f="",u=0;if(i.recaptcha&&(a=t.find(".g-recaptcha-response").val()),e.each(s,function(e,o){""!==o.value&&"g-recaptcha-response"!==o.name&&(p[u]={name:t.find("label[for="+o.name.replaceAll("[]","")+"]").text()||"",value:o.value},u++)}),p.length?f=p.map(e=>Object.entries(e).reduce((e,t,o)=>`${e}${o>0?"&&":""}${t[0]}=${t[1]}`,"")):d=!1,t.find('.xpro-contact-form-require [required="required"]').each(function(t){""===e(this).val()&&(d=!1)}),!d){c='
'+i.required_field_message+"
",t.find(".xpro-contact-form-message").hide().html(c).slideDown(),r.hide();return}if(i.recaptcha&&!a){c='
'+i.captcha_message+"
",t.find(".xpro-contact-form-message").hide().html(c).slideDown(),r.hide();return}t.find(".xpro-contact-form-message").slideUp(),e.ajax({method:"POST",url:l,data:{postData:JSON.stringify(f),formName:i.form_name,formSubject:i.form_subject,captcha:a}}).done(function(e){e.success?(c='
'+i.success_message+"
",t.find(".xpro-contact-form-message").hide().html(c).slideDown()):(c='
'+i.error_message+"
",t.find(".xpro-contact-form-message").hide().html(c).slideDown()),r.hide(),i.recaptcha&&grecaptcha.reset()})})},Search:function(e){let t=o.getElementSettings(e);("4"===t.layout||"5"===t.layout)&&(e.find(".xpro-elementor-search-button").on("click",function(t){t.preventDefault(),t.stopPropagation(),e.find(".xpro-elementor-search-layout-4 .xpro-elementor-search-inner").fadeIn(400),e.find(".xpro-elementor-search-layout-5 .xpro-elementor-search-inner").slideDown(400)}),e.find(".xpro-elementor-search-button-close").on("click",function(t){t.preventDefault(),t.stopPropagation(),e.find(".xpro-elementor-search-layout-4 .xpro-elementor-search-inner").fadeOut(400),e.find(".xpro-elementor-search-layout-5 .xpro-elementor-search-inner").slideUp(400)}))},CourseGrid:function(e){let t=o.getElementSettings(e),i=e.find(".xpro-post-grid-main");e.find(".xpro-post-grid-item"),i.cubeportfolio({layoutMode:"grid",gridAdjustment:"responsive",mediaQueries:[{width:elementorFrontend.config.breakpoints.lg,cols:t.column_grid||3,options:{gapHorizontal:t.space_between.size,gapVertical:t.space_between.size}},{width:elementorFrontend.config.breakpoints.md,cols:t.column_grid_tablet||2,options:{gapHorizontal:t.space_between_tablet.size||0,gapVertical:t.space_between_tablet.size||0}},{width:0,cols:t.column_grid_mobile||1,options:{gapHorizontal:t.space_between_mobile.size||0,gapVertical:t.space_between_mobile.size||0}},],displayType:"default",displayTypeSpeed:0})},ProductGrid:function(t){let i=o.getElementSettings(t),n=t.find(".xpro-woo-product-grid-main");t.find(".xpro-woo-product-grid-item"),t.find(".xpro-hv-qv-btn").click(function(o){o.preventDefault();let i=e(this).attr("id"),n={action:"load_quick_view_product_data",nonce:XproElementorAddons.nonce,id:i};e.ajax({url:XproElementorAddons.ajax_url,type:"post",data:n,dataType:"html",cache:!1,beforeSend:function(){t.find(".xpro-qv-loader-wrapper").css("display","unset"),t.find(".xpro-qv-popup-wrapper").css("display","none")},complete:function(){t.find(".xpro-qv-loader-wrapper").css("display","none"),t.find(".xpro-qv-popup-wrapper").css("display","unset"),t.find(".xpro-qv-popup-overlay").css({opacity:"1",visibility:"visible"})},success:function(o){t.find("#xpro_elementor_fetch_qv_data").html(o),e(".xpro-woo-qv-content-sec .variations_form").wc_variation_form().find(".variations select:eq(0)").trigger("change"),e(".xpro-woo-qv-content-sec .variations_form").trigger("wc_variation_form")}})}),t.on("click",".xpro-woo-qv-cross",function(e){e.preventDefault(),t.find(".xpro-qv-popup-wrapper").css("display","none"),t.find(".xpro-qv-popup-overlay").css({opacity:"0",visibility:"hidden"})}),t.on("click",".xpro-qv-popup-overlay",function(e){e.preventDefault(),t.find(".xpro-qv-popup-wrapper").css("display","none"),t.find(".xpro-qv-popup-overlay").css({opacity:"0",visibility:"hidden"})}),e(document).keyup(function(e){27===e.keyCode&&(t.find(".xpro-qv-popup-wrapper").css("display","none"),t.find(".xpro-qv-popup-overlay").css({opacity:"0",visibility:"hidden"}))}),t.on("click","#xpro_elementor_fetch_qv_data .single_add_to_cart_button:not(.disabled)",function(o){if(o.preventDefault(),""!==e(this).parents("form").attr("action"))return window.location.href=e(this).parents("form").attr("action"),!1;let i=e(this).closest("form");if(!i[0].checkValidity())return i[0].reportValidity(),!1;let n=e(this),r=e(this).val();if(e('input[name="variation_id"]').val(),e('input[name="quantity"]').val(),t.find(".woocommerce-grouped-product-list-item").length){let a=e("input.qty"),l=[];e.each(a,function(t,o){let i=e(this).attr("name");i=(i=i.replace("quantity[","")).replace("]",""),i=parseInt(i),e(this).val()&&(l[i]=e(this).val())})}let s=i.serialize();n.is(".single_add_to_cart_button")&&(n.removeClass("added"),n.addClass("loading"),e.ajax({url:XproElementorAddons.ajax_url,type:"POST",data:"action=add_cart_single_product_ajax&product_id="+r+"&nonce="+XproElementorAddons.nonce+"&"+s,success:function(t){e(document.body).trigger("wc_fragment_refresh"),n.removeClass("loading"),n.addClass("added")}}))}),n.cubeportfolio({layoutMode:"grid",gridAdjustment:"responsive",mediaQueries:[{width:elementorFrontend.config.breakpoints.lg,cols:i.column_grid||3,options:{gapHorizontal:i.space_between.size,gapVertical:i.space_between.size}},{width:elementorFrontend.config.breakpoints.md,cols:i.column_grid_tablet||2,options:{gapHorizontal:i.space_between_tablet.size||0,gapVertical:i.space_between_tablet.size||0}},{width:0,cols:i.column_grid_mobile||1,options:{gapHorizontal:i.space_between_mobile.size||0,gapVertical:i.space_between_mobile.size||0}},],displayType:"default",displayTypeSpeed:0})},HeroSlider:function(t){o.getElementSettings(t);var i=t.find(".xpro-hero-slider").data("xpro-hero-slider-setting");new Swiper(t.find(".xpro-hero-slider")[0],{parallax:!0,speed:100*i.slide_speed,spaceBetween:0,effect:i.slide_effect,fadeEffect:{crossFade:!0},loop:i.loop,autoplay:{enabled:i.autoplay,disableOnInteraction:!0,delay:i.autoplay_timeout?1e3*i.autoplay_timeout:3e3},pagination:{el:t.find(".swiper-pagination")[0],clickable:!0},navigation:{nextEl:t.find(".swiper-button-next")[0],prevEl:t.find(".swiper-button-prev")[0]},allowTouchMove:i.mouse_drag}).on("slideChangeTransitionStart",function(){var t=this;e(t.slides[t.activeIndex]).find("[data-animation]").each(function(){var o=e(this),i="animated "+o.data("animation");o.addClass(i).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){o.removeClass(i)}),e(t.slides).removeClass("xpro-animation-init"),e(t.slides[t.activeIndex]).addClass("xpro-animation-init")})})}};e(window).on("elementor/frontend/init",o.init)}(jQuery,window.elementorFrontend) ;!function(e){function i(i,u){var p=i.find(".premium-carousel-wrapper"),f=u(p).data("settings"),e=getComputedStyle(i[0]),a=i.data("id");p.find(".elementor-section-stretched").removeClass("elementor-section-stretched");var n=p.find(".premium-carousel-nav-progress-fill");if(!(p.find(".item-wrapper").length<1)){if(p.on("init",function(e){e.preventDefault(),setTimeout(function(){window.carouselTrigger=!0,i.trigger("paCarouselLoaded"),l("init")},500),u(this).find("item-wrapper.slick-active").each(function(){var e=u(this);e.addClass(e.data("animation"))}),u(".slick-track").addClass("translate")}),p.find(".premium-carousel-inner").slick({vertical:f.vertical,slidesToScroll:f.slidesToScroll,slidesToShow:f.slidesToShow,responsive:[{breakpoint:f.tabletBreak,settings:{slidesToShow:f.slidesTab,slidesToScroll:f.slidesTab,swipe:f.touchMove}},{breakpoint:f.mobileBreak,settings:{slidesToShow:f.slidesMob,slidesToScroll:f.slidesMob,swipe:f.touchMove}}],useTransform:!0,fade:f.fade,infinite:f.infinite,speed:f.speed,autoplay:f.autoplay,autoplaySpeed:f.autoplaySpeed,rows:0,draggable:f.draggable,rtl:f.rtl,adaptiveHeight:f.adaptiveHeight,pauseOnHover:f.pauseOnHover,centerMode:f.centerMode,centerPadding:e.getPropertyValue("--pa-carousel-center-padding")+"px",arrows:f.arrows,prevArrow:p.find(".premium-carousel-nav-arrow-prev").html(),nextArrow:p.find(".premium-carousel-nav-arrow-next").html(),dots:f.dots,variableWidth:f.variableWidth,cssEase:f.cssEase,customPaging:function(){return p.find(".premium-carousel-nav-dot").html()},carouselNavigation:f.carouselNavigation,templatesNumber:f.templatesNumber}),"progressbar"===f.carouselNavigation){var t=1/f.templatesNumber;p.find(".premium-carousel-nav-progressbar-fill").css("transform","translate3d(0px, 0px, 0px) scaleX("+t+") scaleY(1)")}if("progress"===f.carouselNavigation&&o(),i.find(".premium-carousel-hidden").removeClass("premium-carousel-hidden"),p.find(".premium-carousel-nav-arrow-prev").remove(),p.find(".premium-carousel-nav-arrow-next").remove(),f.variableWidth&&p.find(".elementor-container").css("flex-wrap","nowrap"),p.on("afterChange",function(e,i,a){var n,t,s=i.options.slidesToScroll,r=(n=i.options.slidesToShow,(t=u(window).width())>f.tabletBreak&&(n=f.slidesDesk),t<=f.tabletBreak&&(n=f.slidesTab),t<=f.mobileBreak&&(n=f.slidesMob),n),o=i.options.centerMode,l=a+r-1;if(p.find(".slick-active .elementor-invisible").each(function(e,i){var a=u(i).data("settings");if(a&&(a._animation||a.animation)){var n=a._animation_delay?a._animation_delay:0,t=a._animation||a.animation;setTimeout(function(){u(i).removeClass("elementor-invisible").addClass(t+" animated")},n)}}),1===s){if(!0==!o){var d=u(this).find("[data-slick-index='"+l+"']");"null"!=f.animation&&d.find("p, h1, h2, h3, h4, h5, h6, span, a, img, i, button").addClass(f.animation).removeClass("premium-carousel-content-hidden")}}else for(var c=s+a;0<=c;c--)d=u(this).find("[data-slick-index='"+c+"']"),"null"!=f.animation&&d.find("p, h1, h2, h3, h4, h5, h6, span, a, img, i, button").addClass(f.animation).removeClass("premium-carousel-content-hidden");if(i.$slides.length-1!=a||f.infinite||p.find(".premium-carousel-inner").slick("slickSetOption","autoplay",!1,!1),"fraction"===i.options.carouselNavigation&&p.find("#currentSlide").text((a||0)+1),"progressbar"===i.options.carouselNavigation){var m=(a+1)/i.options.templatesNumber;p.find(".premium-carousel-nav-progressbar-fill").css("transform","translate3d(0px, 0px, 0px) scaleX("+m+") scaleY(1)")}}),p.on("beforeChange",function(e,i,a){l();var n=u(this).find("[data-slick-index='"+a+"']");"null"!=f.animation&&n.siblings().find("p, h1, h2, h3, h4, h5, h6, span, a, img, i, button").removeClass(f.animation).addClass("premium-carousel-content-hidden")}),f.vertical){var s=-1;elementorFrontend.elements.$window.on("load",function(){p.find(".slick-slide").each(function(){u(this).height()>s&&(s=u(this).height())}),p.find(".slick-slide").each(function(){u(this).height()1&&(e=e[1])&&(""==(e=e.toUpperCase())&&(e="-"),a=e,"undefined"!=typeof Storage?null==window.sessionStorage.getItem("chaty_user_country_code")&&window.sessionStorage.setItem("chaty_user_country_code",a):Q("chaty_user_country_code")||R("chaty_user_country_code",a,365),b())}):b()}function b(){i.length&&(t("body").append(' '),t.each(i,function(a,e){var c,h="",g="",p=0,_=[],u={},v=(c=e,!X(c.triggers.has_countries)||!!A(c.triggers.countries)||!c.triggers.countries.length||"-"==(n=Z())||-1!=t.inArray(n,c.triggers.countries));v=(v=v&&function t(a){if(a.triggers.has_date_scheduling_rules){var e=a.triggers.date_scheduling_rules.start_date_time,c=a.triggers.date_scheduling_rules.end_date_time,i=new Date,n=(i=Y(i,a.triggers.time_diff)).getFullYear()+"-"+O(i.getMonth()+1)+"-"+O(i.getDate())+" "+O(i.getHours())+":"+O(i.getMinutes())+":"+O(i.getSeconds());return""==c&&!!(e<=n)||""==e&&!!(c>=n)||""!=e&&""!=c&&!!(e<=n)&&!!(c>=n)}return!0}(e))&&function t(a){var e=!0;if(X(a.triggers.has_day_hours_scheduling_rules)&&a.triggers.day_hours_scheduling_rules.length>0){var c=a.triggers.day_hours_scheduling_rules;if(c.length>0){e=!1;for(var i=new Date,n=(i=Y(i,a.triggers.day_time_diff)).getHours(),s=i.getMinutes(),o=i.getDay(),h=0;h=0&&c[h].days<=6?c[h].days==o&&(d=1):7==c[h].days?o>=0&&o<=4&&(d=1):8==c[h].days?o>=1&&o<=5&&(d=1):9==c[h].days&&(6==o||0==o)&&(d=1),1==d&&(n>c[h].start_hours&&n=c[h].start_min&&(l=1):n>c[h].start_hours&&n==c[h].end_hours?s<=c[h].end_min&&(l=1):n==c[h].start_hours&&n==c[h].end_hours&&s>=c[h].start_min&&s<=c[h].end_min&&(l=1),1==l&&s>=c[h].start_min&&s<=c[h].end_min&&(r=1)),1==l&&1==d&&(e=1),1==e&&(h=c.length+1)}}}return e}(e);let m=null,$=0,w=null,b=!1;t.each(e.channels,function(t,a){k(a)&&("Chatway"===a.channel?($=!0,w=a.chatway_position,m=a,("inside-chaty"===w||"chat-view"===e.settings.cta_type)&&(b=!0,p++,_.push(a))):(u=a,_.push(a),p++))}),"open"==e.settings.default_state&&1==p&&"chat-view"!=e.settings.cta_type&&(e.settings.default_state="click",i[a].settings.default_state="click");let M="";$&&(M="has-chatway-channel");if((1!=p||!b)&&v&&p>0&&!t("#chaty-widget-"+e.id).length){var T,B,L=P(e.settings);L="right"==L?"right":"left";var z=q(e);if("chat-view"==e.settings.cta_type){var I,E,H,V,G,F,R,J="";t("body").append(J),E=(I=e).id,null==(H=W(E))&&(H=-1),V=I.settings.cta_body,G=I.settings.cta_head,F=t("title").text(),A(F)?(V=V.replace(/{title}/g,""),G=G.replace(/{title}/g,"")):(V=V.replace(/{title}/g,F),G=G.replace(/{title}/g,F)),V=V.replace(/{url}/g,""+window.location.href+""),G=G.replace(/{url}/g,""+window.location.href+""),R="",R+="",t("#chaty-widget-"+E).append(R)}else{var J="";t("body").append(J)}X(e.triggers.auto_hide_widget)&&parseInt(e.triggers.hide_after)>0&&(t("#chaty-widget-"+e.id).addClass("auto-hide-chaty"),t("#chaty-widget-"+e.id).attr("data-time",e.triggers.hide_after));var Q=N(e.id,"c-widget");if(t("#chaty-widget-"+e.id).addClass(e.settings.show_cta),1==p&&"chat-view"!=e.settings.cta_type){"vertical"!=e.settings.icon_view&&(z="right"!=L?"right":"left");var K=S(u,e.id,z);t("#chaty-widget-"+e.id+" .chaty-i-trigger").append(K),t("#chaty-widget-"+e.id+" .chaty-i-trigger").addClass("single-channel"),t("#chaty-widget-"+e.id+" .chaty-i-trigger .chaty-channel").addClass("single"),t("#chaty-widget-"+e.id+" .chaty-widget").addClass("has-single");var tt=e.settings.cta_text;A(tt)||(tt=x(tt)),"first_click"==e.settings.show_cta&&(Q?(t("#chaty-widget-"+e.id+" .chaty-tooltip").removeClass("chaty-tooltip"),t("#chaty-widget-"+e.id+" .chaty-i-trigger .chaty-channel").addClass("active").addClass("chaty-tooltip").addClass("pos-"+z),t("#chaty-widget-"+e.id+" .chaty-i-trigger .chaty-channel").append(""+tt+"").addClass("active").addClass("has-on-hover"),t("#chaty-widget-"+e.id+" .chaty-i-trigger .chaty-channel a").append(""+tt+"").addClass("has-on-hover"),t("#chaty-widget-"+e.id+" .chaty-i-trigger .chaty-channel a").attr("data-text",tt)):t("#chaty-widget-"+e.id+" .chaty-i-trigger .chaty-channel a").append(""+tt+"").removeClass("active").addClass("has-on-hover")),"all_time"==e.settings.show_cta&&(t("#chaty-widget-"+e.id+" .chaty-i-trigger .chaty-tooltip").append(""+tt+"").addClass("active").addClass("has-on-hover"),t("#chaty-widget-"+e.id+" .chaty-i-trigger.single-channel .chaty-channel a").attr("data-text",tt));var ta=u;("Instagram"!=ta.channel_type||"#ffffff"!=ta.icon_color&&"#fff"!=ta.icon_color)&&(h+="#chaty-widget-"+e.id+" ."+ta.channel_type+"-channel .color-element{ fill: "+ta.icon_color+"; color: "+ta.icon_color+";}",h+="#chaty-widget-"+e.id+" .channel-icon-"+ta.channel_type+" .color-element{ fill: "+ta.icon_color+"; color: "+ta.icon_color+";}"),h+="#chaty-widget-"+e.id+" ."+ta.channel_type+"-channel .chaty-custom-icon { background-color: "+ta.icon_color+"; }",h+="#chaty-widget-"+e.id+" ."+ta.channel_type+"-channel .chaty-svg { background-color: "+ta.icon_color+";}",h+="#chaty-widget-"+e.id+" .channel-icon-"+ta.channel_type+" .chaty-svg { background-color: "+ta.icon_color+";}","Contact_Us"==ta.channel_type&&(h+=".chaty-contact-form-box #chaty-submit-button-"+e.id+" {background-color: "+ta.contact_form_settings.button_bg_color+"; color: "+ta.contact_form_settings.button_text_color+";} ",h+="#chaty-form-"+e.id+"-Contact_Us .chaty-contact-form-title {background-color: "+ta.contact_form_settings.title_bg_color+"; } ");var te='
';t("#chaty-widget-"+e.id+" .chaty-i-trigger").append(te)}else{t.each(e.channels,function(a,c){if(k(c)&&("Chatway"!==c.channel||"inside-chaty"===w||"chat-view"===e.settings.cta_type)){if(U(c.channel_type)&&(c.channel_type=c.channel),"chat-view"==e.settings.cta_type){var i=S(c,e.id,"top");t(".chaty-chat-view-"+e.id+" .chaty-view-channels").append(i)}else{var i=S(c,e.id,z);t("#chaty-widget-"+e.id+" .chaty-channel-list").append(i)}("Instagram"!=c.channel_type||"#ffffff"!=c.icon_color&&"#fff"!=c.icon_color)&&(h+="#chaty-widget-"+e.id+" ."+c.channel_type+"-channel .color-element{ fill: "+c.icon_color+"; color: "+c.icon_color+";}",h+="#chaty-widget-"+e.id+" .channel-icon-"+c.channel_type+" .color-element{ fill: "+c.icon_color+"; color: "+c.icon_color+";}"),h+="#chaty-widget-"+e.id+" ."+c.channel_type+"-channel .chaty-custom-icon { background-color: "+c.icon_color+"; }",h+="#chaty-widget-"+e.id+" ."+c.channel_type+"-channel .chaty-svg { background-color: "+c.icon_color+";}",h+="#chaty-widget-"+e.id+" .channel-icon-"+c.channel_type+" .chaty-svg { background-color: "+c.icon_color+";}",h+=".chaty-chat-view-"+e.id+" ."+c.channel_type+"-channel .chaty-custom-icon { background-color: "+c.icon_color+"; }",h+=".chaty-chat-view-"+e.id+" ."+c.channel_type+"-channel .chaty-svg { background-color: "+c.icon_color+";}",h+=".chaty-chat-view-"+e.id+" .channel-icon-"+c.channel_type+" .chaty-svg { background-color: "+c.icon_color+";}","Contact_Us"==c.channel_type&&(h+=".chaty-contact-form-box #chaty-submit-button-"+e.id+" {background-color: "+c.contact_form_settings.button_bg_color+"; color: "+c.contact_form_settings.button_text_color+";} ",h+="#chaty-form-"+e.id+"-Contact_Us .chaty-contact-form-title {background-color: "+c.contact_form_settings.title_bg_color+"; } ")}});var tc,ti,tn=(tc=e.settings,ti=e.id,(""==tc.widget_icon?tc.widget_icon="chat-base":"chat-image"==tc.widget_icon&&A(tc.widget_icon_url)?tc.widget_icon="chat-base":"chat-fa-icon"==tc.widget_icon&&A(tc.widget_fa_icon)&&(tc.widget_icon="chat-base"),"chat-image"==tc.widget_icon)?"Chaty Widget":"chat-fa-icon"==tc.widget_icon?"":''+function t(a,e,c,i){switch(a){case"chat-smile":return'';case"chat-bubble":return'';case"chat-db":return'';default:return''}}(tc.widget_icon,tc.widget_color,tc.widget_icon_color,ti)+""),tt=e.settings.cta_text;"first_click"!=e.settings.show_cta||Q||(tt="");var ts=z;"horizontal"==e.settings.icon_view&&(ts="left"==L?"right":"left"),A(tt)||(tt=x(tt));var to='
'+tt+'
';t("#chaty-widget-"+e.id+" .chaty-i-trigger").html(to);var te='
';t("#chaty-widget-"+e.id+" .chaty-i-trigger").append(te)}t.each(e.channels,function(t,a){"Contact_Us"==a.channel_type&&"yes"==a.hide_recaptcha_badge&&(h+=".grecaptcha-badge {visibility: hidden;}")}),"chat-view"==e.settings.cta_type&&e.settings.show_close_button;var th,tl,tr,td,Q=N(e.id,"c-widget");Q&&("open"!=e.settings.default_state||1==p)&&(th=e.settings,N(tl=e.id,"c-widget")&&X(th.is_pending_mesg_enabled)&&parseInt(th.pending_mesg_count)>0&&(t("#chaty-widget-"+tl+" .chaty-widget").hasClass("has-single")?"sheen"==th.attention_effect||"spin"==th.attention_effect||"pulse"==th.attention_effect?t("#chaty-widget-"+tl+" .chaty-i-trigger .chaty-channel").append(""+th.pending_mesg_count+""):t("#chaty-widget-"+tl+" .chaty-i-trigger .chaty-channel .chaty-svg").append(""+th.pending_mesg_count+""):"jump"==th.attention_effect||"waggle"==th.attention_effect||"blink"==th.attention_effect||"pulse-icon"==th.attention_effect||"floating"==th.attention_effect?t("#chaty-widget-"+tl+" .chaty-i-trigger .chaty-cta-main .chaty-cta-button").append(""+th.pending_mesg_count+""):t("#chaty-widget-"+tl+" .chaty-i-trigger .chaty-cta-main").append(""+th.pending_mesg_count+"")),tr=e.settings,N(td=e.id,"c-widget")&&"none"!=tr.attention_effect&&""!=tr.attention_effect&&(t("#chaty-widget-"+td).attr("data-animation",tr.attention_effect),t("#chaty-widget-"+td+" .chaty-widget").hasClass("has-single")?t("#chaty-widget-"+td+" .chaty-i-trigger .chaty-channel .chaty-svg").addClass("chaty-animation-"+tr.attention_effect):t("#chaty-widget-"+td+" .chaty-i-trigger .chaty-cta-main .chaty-cta-button").addClass("chaty-animation-"+tr.attention_effect)));var ty=0;if("open"!=e.settings.default_state||X(e.settings.show_close_button)||(t("#chaty-widget-"+e.id+" .chaty-widget").addClass("chaty-no-close-button").addClass("chaty-open"),ty=1),$&&(t("#chaty-widget-"+e.id+" .chaty-widget").addClass(w),"above-chaty"===w)){t("#chaty-widget-"+e.id+" .chaty-widget").addClass("has-chatway");let tg=q(e),tp=S(m,e.id,tg,a,e.settings);t("#chaty-widget-"+e.id).length&&(t("#chaty-widget-"+e.id+" .chaty-channel-list").prepend(tp),f+="#chaty-widget-"+e.id+" ."+m.channel_type+"-channel .color-element{ fill: "+m.icon_color+"; color: "+m.icon_color+";}",f+="#chaty-widget-"+e.id+" ."+m.channel_type+"-channel .csaas-svg { background-color: "+m.icon_color+";}",f+=".channel-"+e.id+"-"+m.channel_type+" .csaas-svg { background-color: "+m.icon_color+";}",h+="#chaty-widget-"+e.id+" ."+m.channel_type+"-channel .chaty-custom-icon { background-color: "+m.icon_color+"; }",h+="#chaty-widget-"+e.id+" ."+m.channel_type+"-channel .chaty-svg { background-color: "+m.icon_color+";}",h+="#chaty-widget-"+e.id+" .channel-icon-"+m.channel_type+" .chaty-svg { background-color: "+m.icon_color+";}")}X(e.settings.is_google_analytics_enabled)&&(t("#chaty-widget-"+e.id+" .chaty-channel-list .chaty-channel > a").addClass("has-gae"),t("#chaty-form-"+e.id+"-chaty-chat-view .chaty-channel > a").addClass("has-gae"),t("#chaty-widget-"+e.id+" .chaty-i-trigger.single-channel .chaty-channel > a").addClass("has-gae"),t(".chaty-outer-forms.chaty-whatsapp-btn-form.chaty-form-"+e.id+" form.add-analytics").addClass("form-google-analytics"),t(".whatsapp-chaty-form-"+e.id).addClass("has-form-gae")),X(e.settings.has_custom_css)&&!A(e.settings.custom_css)&&(g+=e.settings.custom_css),"hover"==e.settings.default_state?t("#chaty-widget-"+e.id).addClass("open-on-hover"):"open"!=e.settings.default_state||(t("#chaty-widget-"+e.id+" .chaty-widget").addClass("default-open"),(Q||!X(e.settings.show_close_button))&&t("#chaty-widget-"+e.id+" .chaty-widget:not(.has-single)").addClass("chaty-open"),Q||t("#chaty-widget-"+e.id+" .chaty-widget").removeClass("default-open")),t("#chaty-widget-"+e.id+" .chaty-widget:not(.has-single):not(.chaty-no-close-button)").hasClass("default-open")?X(e.settings.bg_blur_effect)&&t("body").addClass("add-bg-blur-effect"):t("body").removeClass("add-bg-blur-effect"),X(e.settings.bg_blur_effect)&&t("#chaty-widget-"+e.id+" .chaty-widget:not(.chaty-no-close-button)").addClass("has-bg-blur-effect");var t_=(T=e.settings.widget_size,B=e.settings.custom_widget_size,T);if(t_=parseInt(t_),h+="#chaty-widget-"+e.id+" .chaty-channel-list .chaty-channel {width: "+t_+"px; height: "+t_+"px; }",h+="#chaty-widget-"+e.id+" .chaty-channel-list .chaty-channel > a {width: "+t_+"px; height: "+t_+"px; }",h+="#chaty-widget-"+e.id+" .chaty-channel-list .chaty-channel > a .chaty-custom-icon {display:block; width: "+t_+"px; height: "+t_+"px; line-height: "+t_+"px; font-size: "+parseInt(t_/2)+"px; }",h+="#chaty-widget-"+e.id+" .chaty-channel-list .chaty-channel button {width: "+t_+"px; height: "+t_+"px; margin: 0; padding:0; outline: none; border-radius: 50%;}",h+="#chaty-widget-"+e.id+" .chaty-channel-list .chaty-channel .chaty-svg {width: "+t_+"px; height: "+t_+"px; }",h+="#chaty-widget-"+e.id+" .chaty-channel-list .chaty-channel .chaty-svg img {width: "+t_+"px; height: "+t_+"px; }",h+="#chaty-widget-"+e.id+" .chaty-channel-list .chaty-channel span.chaty-icon {width: "+t_+"px; height: "+t_+"px; }",h+="#chaty-widget-"+e.id+" .chaty-channel-list .chaty-channel a {width: "+t_+"px; height: "+t_+"px; }",h+="#chaty-widget-"+e.id+" .chaty-channel-list .chaty-channel .chaty-svg .chaty-custom-channel-icon {width: "+t_+"px; height: "+t_+"px; line-height: "+t_+"px; display: block; font-size:"+parseInt(t_/2)+"px; }",h+="#chaty-widget-"+e.id+" .chaty-i-trigger .chaty-cta-button {background-color: "+e.settings.widget_color+"; }",h+="#chaty-widget-"+e.id+" .chaty-i-trigger .chaty-cta-button button {background-color: "+e.settings.widget_color+"; }",h+="#chaty-widget-"+e.id+" .chaty-i-trigger .chaty-channel {width: "+t_+"px; height: "+t_+"px; }",h+="#chaty-widget-"+e.id+" .chaty-i-trigger .chaty-channel > a {width: "+t_+"px; height: "+t_+"px; }",h+="#chaty-widget-"+e.id+" .chaty-i-trigger .chaty-channel > a .chaty-custom-icon {display:block; width: "+t_+"px; height: "+t_+"px; line-height: "+t_+"px; font-size: "+parseInt(t_/2)+"px; }",h+="#chaty-widget-"+e.id+" .chaty-i-trigger .chaty-channel button {width: "+t_+"px; height: "+t_+"px; margin: 0; padding:0; outline: none; border-radius: 50%;}",h+="#chaty-widget-"+e.id+" .chaty-i-trigger .chaty-channel .chaty-svg {width: "+t_+"px; height: "+t_+"px; }",h+="#chaty-widget-"+e.id+" .chaty-i-trigger .chaty-channel .chaty-svg img {width: "+t_+"px; height: "+t_+"px; }",h+="#chaty-widget-"+e.id+" .chaty-i-trigger .chaty-channel span.chaty-icon {width: "+t_+"px; height: "+t_+"px; }",h+="#chaty-widget-"+e.id+" .chaty-i-trigger .chaty-channel a {width: "+t_+"px; height: "+t_+"px; }",h+="#chaty-widget-"+e.id+" .chaty-i-trigger .chaty-channel .chaty-svg .chaty-custom-channel-icon {width: "+t_+"px; height: "+t_+"px; line-height: "+t_+"px; display: block; font-size:"+parseInt(t_/2)+"px; }",h+="#chaty-widget-"+e.id+" .chaty-i-trigger .ch-pending-msg {background-color: "+e.settings.pending_mesg_count_bgcolor+"; color: "+e.settings.pending_mesg_count_color+"; }",h+="#chaty-widget-"+e.id+" .chaty-i-trigger .chaty-channel .chaty-svg .widget-fa-icon {line-height: "+t_+"px; font-size:"+parseInt(t_/2)+"px; }","vertical"==e.settings.icon_view){h+="#chaty-widget-"+e.id+" .chaty-channel-list {height: "+p*(t_+8)+"px; }",h+="#chaty-widget-"+e.id+" .chaty-channel-list {width: "+(t_+8)+"px; }";for(var tf=0;tf<=p;tf++)h+="#chaty-widget-"+e.id+" .chaty-open .chaty-channel-list .chaty-channel:nth-child("+(tf+1)+") {-webkit-transform: translateY(-"+(t_+8)*(p-tf-ty)+"px); transform: translateY(-"+(t_+8)*(p-tf-ty)+"px);}",h+="#chaty-widget-"+e.id+" .chaty-open.above-chaty.has-chatway .chaty-channel-list .chaty-channel:nth-child("+(tf+1)+") {-webkit-transform: translateY(-"+(t_+8)*(p-tf-ty+1)+"px); transform: translateY(-"+(t_+8)*(p-tf-ty+1)+"px);}";if($&&"inside-chaty"==w){let tu=0,tv=1;for(let tm=0;tm<_.length;tm++)ta=_[tm],h+="body.chatway--active #chaty-widget-"+e.id+" .chaty-open .chaty-channel-list .chaty-channel."+ta.channel+"-link {-webkit-transform: translateY(-"+(t_+8)*(p-tu-ty)+"px); transform: translateY(-"+(t_+8)*(p-tu-ty)+"px);}","Chatway"!=ta.channel?h+="body:not(.chatway--active) #chaty-widget-"+e.id+" .chaty-open .chaty-channel-list .chaty-channel."+ta.channel+"-channel-link {-webkit-transform: translateY(-"+(t_+8)*(p-tu-tv-ty)+"px); transform: translateY(-"+(t_+8)*(p-tu-tv-ty)+"px);}":tv=0,tu++}else{let t$=0;for(t$=0;t$<=p;t$++)h+="#chaty-widget-"+e.id+" .chaty-open .chaty-channel-list .chaty-channel:nth-child("+(t$+1)+") {-webkit-transform: translateY(-"+(t_+8)*(p-t$-ty)+"px); transform: translateY(-"+(t_+8)*(p-t$-ty)+"px);}";"above-chaty"==w&&(h+="#chaty-widget-"+e.id+" .chaty-channel-list .Chatway-channel-link {-webkit-transform: translateY(-"+(t_+8)*ty+"px); transform: translateY(-"+(t_+8)*(1-ty)+"px);}")}}else{t("#chaty-widget-"+e.id+" .chaty-widget").addClass("hor-mode"),h+="#chaty-widget-"+e.id+" .chaty-channel-list {width: "+p*(t_+8)+"px; }",h+="#chaty-widget-"+e.id+" .chaty-channel-list {height: "+t_+"px; }";let tw=0;if($&&"inside-chaty"==w){let t0=0,t8=1;for(let t3=0;t3<_.length;t3++)ta=_[t3],h+="body.chatway--active .chaty-widget-"+e.id+" .chaty-widget.left-position.hor-mode.chaty-open .chaty-channel-list .chaty-channel:nth-child("+(t0+1)+") {-webkit-transform: translateX("+(t_+8)*(p-t0-ty)+"px); transform: translateX("+(t_+8)*(p-t0-ty)+"px);}",h+="body.chatway--active .chaty-widget-"+e.id+" .chaty-widget.right-position.hor-mode.chaty-open .chaty-channel-list .chaty-channel:nth-child("+(t0+1)+") {-webkit-transform: translateX(-"+(t_+8)*(p-t0-ty)+"px); transform: translateX(-"+(t_+8)*(p-t0-ty)+"px);}","Chatway"!=ta.channel?(h+="body:not(.chatway--active) #chaty-widget-"+e.id+" .chaty-widget.left-position.hor-mode.chaty-open .chaty-channel-list .chaty-channel:nth-child("+(t0+1)+") {-webkit-transform: translateX("+(t_+8)*(p-t0-t8-ty)+"px); transform: translateX("+(t_+8)*(p-t0-t8-ty)+"px);}",h+="body:not(.chatway--active) #chaty-widget-"+e.id+" .chaty-widget.right-position.hor-mode.chaty-open .chaty-channel-list .chaty-channel:nth-child("+(t0+1)+") {-webkit-transform: translateX(-"+(t_+8)*(p-t0-t8-ty)+"px); transform: translateX(-"+(t_+8)*(p-t0-t8-ty)+"px);}"):t8=0,t0++}else{for(tw=0;tw<=p;tw++)h+="#chaty-widget-"+e.id+" .chaty-widget.left-position.hor-mode.chaty-open .chaty-channel-list .chaty-channel:nth-child("+(tw+1)+") {-webkit-transform: translateX("+(t_+8)*(p-tw-ty)+"px); transform: translateX("+(t_+8)*(p-tw-ty)+"px);}",h+="#chaty-widget-"+e.id+" .chaty-widget.right-position.hor-mode.chaty-open .chaty-channel-list .chaty-channel:nth-child("+(tw+1)+") {-webkit-transform: translateX(-"+(t_+8)*(p-tw-ty)+"px); transform: translateX(-"+(t_+8)*(p-tw-ty)+"px);}";"above-chaty"==w&&(h+="#chaty-widget-"+e.id+" .chaty-widget.left-position.hor-mode .chaty-channel-list .Chatway-channel-link {-webkit-transform: translateX("+(t_+8)*(1-ty)+"px); transform: translateX("+(t_+8)*(1-ty)+"px);}",h+="#chaty-widget-"+e.id+" .chaty-widget.right-position.hor-mode .chaty-channel-list .Chatway-channel-link {-webkit-transform: translateX(-"+(t_+8)*(1-ty)+"px); transform: translateX(-"+(t_+8)*(1-ty)+"px);}")}}var t1=e.settings.bottom_spacing,t6=e.settings.side_spacing;h+="#chaty-widget-"+e.id+" .chaty-widget {bottom: "+t1+"px}","left"==L?(h+="#chaty-widget-"+e.id+" .chaty-widget {left: "+t6+"px; right: auto;}",h+=".chaty-outer-forms.pos-left.chaty-form-"+e.id+" {left: "+t6+"px}",t(".chaty-form-"+e.id).addClass("pos-left")):(h+="#chaty-widget-"+e.id+" .chaty-widget {right: "+t6+"px; left:auto;}",t(".chaty-form-"+e.id).addClass("pos-right"),h+=".chaty-outer-forms.pos-right.chaty-form-"+e.id+" {right: "+t6+"px; left:auto;}"),t(".chaty-form-"+e.id).show();var tb=t_+15+parseInt(t1);h+=".chaty-outer-forms.active.chaty-form-"+e.id+" {-webkit-transform: translateY(-"+tb+"px); transform: translateY(-"+tb+"px)} ",h+="#chaty-widget-"+e.id+".chaty:not(.form-open) .chaty-widget.chaty-open + .chaty-chat-view {-webkit-transform: translateY(-"+tb+"px); transform: translateY(-"+tb+"px)} ",h+="#chaty-widget-"+e.id+" .chaty-tooltip:after {background-color: "+e.settings.cta_bg_color+"; color: "+e.settings.cta_text_color+"}",h+="#chaty-widget-"+e.id+" .chaty-tooltip.pos-top:before {border-top-color: "+e.settings.cta_bg_color+"; }",h+="#chaty-widget-"+e.id+" .chaty-tooltip.pos-left:before {border-left-color: "+e.settings.cta_bg_color+"; }",h+="#chaty-widget-"+e.id+" .chaty-tooltip.pos-right:before {border-right-color: "+e.settings.cta_bg_color+";}",h+="#chaty-widget-"+e.id+" .on-hover-text {background-color: "+e.settings.cta_bg_color+"; color: "+e.settings.cta_text_color+"}",h+="#chaty-widget-"+e.id+" .chaty-tooltip.pos-top .on-hover-text:before {border-top-color: "+e.settings.cta_bg_color+"; }",h+="#chaty-widget-"+e.id+" .chaty-tooltip.pos-left .on-hover-text:before {border-left-color: "+e.settings.cta_bg_color+"; }",h+="#chaty-widget-"+e.id+" .chaty-tooltip.pos-right .on-hover-text:before {border-right-color: "+e.settings.cta_bg_color+";}";var t7=tb+72+t_;t7>0&&(h+=".chaty-outer-forms.chaty-form-"+e.id+" .chaty-agent-body {max-height: calc(100vh - "+t7+"px); overflow-y: auto; } "),h+="#chaty-form-"+e.id+"-chaty-chat-view .chaty-view-header {background-color: "+e.settings.cta_head_bg_color+";}",h+="#chaty-form-"+e.id+"-chaty-chat-view .chaty-view-header {color: "+e.settings.cta_head_text_color+";}",h+="#chaty-form-"+e.id+"-chaty-chat-view .chaty-view-header svg {fill : "+e.settings.cta_head_text_color+";}";var t2=tb+82+t_;t2>0&&(h+=".chaty-outer-forms.chaty-contact-form-box.chaty-form-"+e.id+" .chaty-contact-inputs {max-height: calc(100vh - "+t2+"px); overflow-y: auto; } "),(25!=t1||25!=t6)&&(t(".chaty-outer-forms.chaty-form-"+e.id).addClass("custom-cht-pos"),t("#chaty-widget-"+e.id).addClass("has-custom-pos"));var t5=parseInt(t("#chaty-form-"+e.id+"-Whatsapp .chaty-whatsapp-header").outerHeight())+parseInt(t("#chaty-form-"+e.id+"-Whatsapp .chaty-whatsapp-footer").outerHeight())+parseInt(t_)+parseInt(t1)+20;if(h+="#chaty-form-"+e.id+"-Whatsapp .chaty-whatsapp-body { max-height: calc(100vh - "+t5+"px); overflow-y: auto; }",N(e.id,"v-widget")&&(X(e.triggers.exit_intent)||X(e.triggers.has_time_delay)||X(e.triggers.has_display_after_page_scroll)>0)?(X(e.triggers.has_time_delay)&&0==parseInt(e.triggers.time_delay)?(j(e.id),t("#chaty-widget-"+e.id).addClass("active")):X(e.triggers.has_time_delay)&&parseInt(e.triggers.time_delay)>0&&(l=!0,parseInt(e.triggers.time_delay)>r&&(r=e.triggers.time_delay),t("#chaty-widget-"+e.id).addClass("on-chaty-delay"),t("#chaty-widget-"+e.id).addClass("delay-time-"+parseInt(e.triggers.time_delay)),t("#chaty-widget-"+e.id).attr("data-time",parseInt(e.triggers.time_delay))),X(e.triggers.has_display_after_page_scroll)&&0==parseInt(e.triggers.display_after_page_scroll)?(j(e.id),t("#chaty-widget-"+e.id).addClass("active")):X(e.triggers.has_display_after_page_scroll)&&parseInt(e.triggers.display_after_page_scroll)>0&&(d=!0,t("#chaty-widget-"+e.id).addClass("on-chaty-scroll"),t("#chaty-widget-"+e.id).addClass("page-scroll-"+parseInt(e.triggers.display_after_page_scroll)),t("#chaty-widget-"+e.id).attr("data-scroll",parseInt(e.triggers.display_after_page_scroll))),X(e.triggers.exit_intent)&&(y=!0,t("#chaty-widget-"+e.id).addClass("on-chaty-exit-intent"))):(j(e.id),t("#chaty-widget-"+e.id).addClass("active")),!A(e.settings.font_family)&&"none"!=e.settings.font_family){var t4=e.settings.font_family;-1!=t.inArray(t4,o)?"System Stack"==t4&&(t4="-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"):(t("head").append(''),t("head").append('')),h+="#chaty-widget-"+e.id+", #chaty-widget-"+e.id+" .chaty-tooltip:after {font-family: "+t4+"}"}}y&&(s?function a(){if(window.history&&window.history.pushState&&y){function e(){y&&""!==location.hash.split("#!/")[1]&&""===window.location.hash&&D()}var c=100;window.history.state&&window.history.state.page&&(c=window.history.state.page),window.history.pushState({page:c+1},""),window.history.pushState({page:c+2},""),window.onpopstate=function(){e()},window.history.onpopstate=function(){e()},window.addEventListener("popstate",function(){e()}),document.addEventListener("backbutton",function(){e()}),window.addEventListener("backbutton",function(){e()}),t(window).on("popstate",function(){e()})}}():t(document).mouseleave(function(t){var a,e,c="mouseout";a=document,e=function(t){null==t.toElement&&null==t.relatedTarget&&D()},a.addEventListener?(a.addEventListener(c,e,!1),D()):a.attachEvent&&a.attachEvent("on"+c,e)})),""!=h&&(t("#custom-chaty-css").length||t("head").append(""),t("#custom-chaty-css").append(h)),""!=g&&(t("#custom-advance-chaty-css").length||t("head").append(""),t("#custom-advance-chaty-css").append(g)),i.length,t(".chaty-sms-channel").length&&t(".chaty-sms-channel").each(function(){var a=t(this).attr("href");a=(a=a.replace(/{title}/g,C())).replace(/{url}/g,window.location.href),t(this).attr("href",a)}),t(document).on("click","#chaty-widget-"+e.id+" .chaty-i-trigger .chaty-channel",function(){t(this).closest(".chaty-widget").hasClass("has-single")?t(this).closest(".chaty").hasClass("form-open")&&(X(e.settings.bg_blur_effect)?t("body").addClass("add-bg-blur-effect"):t("body").removeClass("add-bg-blur-effect")):t(this).closest(".chaty-widget").hasClass("chaty-open")?t("body").removeClass("add-bg-blur-effect"):!t(this).closest(".chaty-widget").hasClass("chaty-no-close-button")&&X(e.settings.bg_blur_effect)&&t("body").addClass("add-bg-blur-effect")})}),t("#custom-advance-chaty-css").length||t("head").append(""),t("#custom-advance-chaty-css").append(f),(t(".v3_site_key").length&&!A(t(".v3_site_key").val())||t(".v2_site_key").length&&!A(t(".v2_site_key").val()))&&function t(){if(jQuery(".v2_site_key").length&&""!=jQuery(".v2_site_key").val()){var a=document.createElement("script");a.type="text/javascript",a.async=!0,a.src="https://www.google.com/recaptcha/api.js?onload=onloadChatyCallback&render=explicit&hl=en",(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(a)}jQuery(".v3_site_key").length&&""!=jQuery(".v3_site_key").val()&&jQuery(".v3_site_key").length&&""!=jQuery(".v3_site_key").val()&&jQuery(".front-google-captcha").length&&jQuery(".front-google-captcha:not(.loaded)").each(function(){jQuery(this).addClass("loaded");var t=jQuery(".v3_site_key").val(),a=document.createElement("script");a.type="text/javascript",a.async=!0,a.src="https://www.google.com/recaptcha/api.js?onload=onloadCallbackChatyV3&render="+t,(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(a),a.loadEventEnd=function(){}})}()),t(".chaty-tooltip").each(function(){""==t(this).data("hover")&&t(this).removeClass("left").removeClass("right").removeClass("top").removeClass("chaty-tooltip")}),t(".chaty.auto-hide-chaty").length&&(c=setInterval(function(){var a=++u;if(t(".chaty.auto-hide-chaty.hide-after-"+u).length){var e=t(".chaty.auto-hide-chaty.hide-after-"+a).data("id");t(".chaty-form-"+e).removeClass("active"),t(".chaty.auto-hide-chaty.hide-after-"+a).removeClass("active"),t("#chaty-widget-"+e).removeClass("auto-hide-chaty"),t("body").removeClass("add-bg-blur-effect")}0==t(".chaty.auto-hide-chaty").length&&clearInterval(c)},1e3)),l&&(e=setInterval(function(){if(t(".chaty.delay-time-"+ ++p).length){var a=t(".chaty.delay-time-"+p).data("id");V(a)}},1e3)),d&&(t(window).on("scroll",function(){if(d){var a=t(document).height()-t(window).height(),e=t(window).scrollTop();if(0!=a){var c=parseInt(e/a*100);if(_<=c){var i=_;_=c;for(var n=i;n<=c;n++)-1==t.inArray(n,g)&&t(".chaty.on-chaty-scroll.page-scroll-"+n).length&&t(".chaty.on-chaty-scroll.page-scroll-"+n).each(function(){var a=t(this).data("id");t(this).removeClass("on-chaty-scroll"),V(a)});_=c}}}}),window.innerWidth,document.documentElement.clientWidth)}function C(){return t("title").length?t("title").text():""}function x(t){return new DOMParser().parseFromString(t,"text/html").documentElement.textContent}function k(t){if(X(t.is_agent)){if(t.agent_data.length&&(!s&&X(t.is_agent_desktop)||s&&X(t.is_agent_mobile)))return!0}else if((!s&&X(t.is_desktop)||s&&X(t.is_mobile))&&(""!=t.value||"Contact_Us"==t.channel||"Chatway"==t.channel))return!0;return!1}function j(a){if(t("#chaty-widget-"+a+" .chaty-channel.chaty-default-open").length){var e=t("#chaty-widget-"+a+" .chaty-channel.chaty-default-open a.chaty-whatsapp-btn-form").data("form");if(!A(e)){var c=N(a,"c-"+t("#chaty-widget-"+a+" .chaty-channel.chaty-default-open").data("channel"));if(c&&(t("#"+e).addClass("is-active"),t("#"+e).length)){var n=t("#chaty-widget-"+a+" .chaty-channel.chaty-default-open a.chaty-whatsapp-btn-form").html()+""+chaty_settings.lang.hide_whatsapp_form+"";if($(a),t("#chaty-widget-"+a).find(".ch-pending-msg").remove(),t("#chaty-widget-"+a+" .chaty-widget").removeClass("chaty-open"),t("#chaty-widget-"+a).addClass("form-open"),t("#"+e).addClass("active"),t("#chaty-widget-"+a+" .chaty-widget:not(.chaty-no-close-button)").hasClass("has-bg-blur-effect")&&t("body").addClass("add-bg-blur-effect"),setTimeout(function(){t(".chaty-whatsapp-btn-form.active .chaty-whatsapp-input").focus()},100),t("#chaty-widget-"+a+" .open-chaty-channel").html(n),t("#chaty-widget-"+a).addClass("active"),t("#chaty-widget-"+a).addClass("active"),t("#chaty-widget-"+a).hasClass("auto-hide-chaty")){var o=parseInt(t("#chaty-widget-"+a).data("time"));o>0&&(o+=u,t("#chaty-widget-"+a).addClass("hide-after-"+o))}if("on"==chaty_settings.data_analytics_settings){var l=[],r=t("#chaty-widget-"+a+" .chaty-channel.chaty-default-open").data("channel"),d=N(a,"v-"+r);if(d&&void 0!==r&&(G(a,"v-"+r),l.push(r)),!h&&l.length){var y=t("#chaty-widget-"+a).data("nonce");t.ajax({url:chaty_settings.ajax_url,data:{widgetId:a,channels:l,userId:a,isMobile:s,widgetNonce:y,action:"update_chaty_channel_views"},type:"post",dataType:"json",success:function(t){},error:function(t,a,e){monitorErrorLog(t,a,e)}})}}return}}}if(t("#chaty-widget-"+a).addClass("active"),t("#chaty-widget-"+a).hasClass("auto-hide-chaty")){var o=parseInt(t("#chaty-widget-"+a).data("time"));o>0&&(o+=u,t("#chaty-widget-"+a).addClass("hide-after-"+o))}J("hide-bg-blur-effect")&&t("body").removeClass("add-bg-blur-effect");var g=N(a,"v-widget");if(g){G(a,"v-widget"),t("#chaty-widget-"+a).data("user");var r,l=[],p=0,_=0;i[t("#chaty-widget-"+a).data("key")];var f=J("activechatyWidgets");if(null!=f?(f=f.split(","),-1==t.inArray(a,f)&&(f.push(a),R("activechatyWidgets",f=f.join(","),1))):(f=a,R("activechatyWidgets",f,1)),t("#chaty-widget-"+a+" .chaty-widget").hasClass("has-single")){p=1,r=t("#chaty-widget-"+a+" .chaty-channel").data("channel");var d=N(a,"v-"+r);d&&void 0!==r&&(G(a,"v-"+r),l.push(r))}else t("#chaty-widget-"+a+" .chaty-widget").hasClass("chaty-open")&&(_=1,t("#chaty-widget-"+a).hasClass("chaty-has-chat-view")?t(".chaty-chat-view.chaty-chat-view-"+a+" .chaty-view-channels").find(".chaty-channel").each(function(){chatyChannel=t(this).data("channel"),(c=N(a,"v-"+chatyChannel))&&"undefined"!=typeof chatyChannel&&(G(a,"v-"+chatyChannel),l.push(chatyChannel))}):t("#chaty-widget-"+a+" .chaty-channel-list .chaty-channel").each(function(){r=t(this).data("channel"),N(a,"v-"+r)&&void 0!==r&&(G(a,"v-"+r),l.push(r))}));if(g&&!h){var y=t("#chaty-widget-"+a).data("nonce");h||t.ajax({url:chaty_settings.ajax_url,data:{widgetId:a,channels:l,userId:a,isMobile:s,isOpen:_,isSingle:p,widgetNonce:y,action:"update_chaty_widget_views"},type:"post",dataType:"json",success:function(t){},error:function(t,a,e){monitorErrorLog(t,a,e)}})}}}function M(a){var e=t("#chaty-widget-"+a).data("user");chatySaasCheckCookie("triggeredFor"+e)||R("triggeredFor"+e,a,2)}function T(t,a){return t}function S(a,e,c){var i="";if(X(a.is_agent)){if(a.agent_data.length){var n=0,o=[];if(t.each(a.agent_data,function(t,a){""!=a.value&&(n++,o=a)}),n>0){var h,l,r,d,y,g,p=W(e);return null==p&&(p=-1),r=a,d=e,y="",null==(g=W(d))&&(g=-1),y+="",f+=".chaty-agent-header.agent-info-"+d+"-"+r.channel+" { background-color: "+r.header_bg_color+"; color: "+r.header_text_color+" } ",f+=".agent-info-"+d+"-"+r.channel+" .chaty-close-agent-list svg { fill: "+r.header_text_color+" } ",t("body").append(y),h=E(a,e),l=I(a,h,c,e),("Instagram"!=a.channel||"#ffffff"!=a.icon_color&&"#fff"!=a.icon_color)&&(f+=".chaty-agent-"+e+"-"+a.channel+" .color-element {fill: "+a.icon_color+"; color: "+a.icon_color+";}"),f+=".chaty-agent-"+e+"-"+a.channel+" .chaty-custom-icon { background-color: "+a.icon_color+";}",f+=".chaty-agent-"+e+"-"+a.channel+" .chaty-svg-img { background-color: "+a.icon_color+";}","
"+l+"
"}}}else{U(a.channel_type)&&(a.channel_type=a.channel);var h=E(a,e),l=I(a,h,c,e);return"Contact_Us"==a.channel_type?i+=" has-chaty-box chaty-contact-form":"Whatsapp"==a.channel_type&&X(a.is_default_open)&&N(e,"c-"+a.channel_type)&&(i+=" chaty-default-open"),"
"+l+"
"}}function B(a,e,c,i,n){var o=e.value,h="_blank";if("Whatsapp"==a.channel_type){var l=L(e.value);s?(h="",o="https://wa.me/"+l):(h="_blank",o="https://web.whatsapp.com/send?phone="+l)}else"WeChat"==a.channel_type?(h="",o="javascript:;"):"Email"==a.channel_type?(h="",o="mailto:"+e.value):"Facebook_Messenger"==a.channel_type?h=s?"":"_blank":"SMS"==a.channel_type?(h="",o="sms:"+e.value):"Telegram"==a.channel_type?(o="https://telegram.me/"+(o=z(e.value,"@")),h="_blank"):"Twitter"==a.channel_type?o="https://twitter.com/"+t.trim(e.value):"Phone"==a.channel_type?(h="",o="tel:"+t.trim(e.value)):"Skype"==a.channel_type?(h="",o="skype:"+t.trim(e.value)+"?chat"):"Snapchat"==a.channel_type?o="https://www.snapchat.com/add/"+t.trim(e.value):"Vkontakte"==a.channel_type?o="https://vk.me/"+t.trim(e.value):"Linkedin"==a.channel_type?o="personal"==e.link_type?"https://www.linkedin.com/in/"+t.trim(e.value):"https://www.linkedin.com/company/"+t.trim(e.value):"Viber"==a.channel_type?(""!=e.viber_url?o="viber://pa?chatURI="+e.value:isNaN(o=z(e.value,"+"))||(o=o.replace("+",""),navigator.userAgent.match(/(iPod|iPhone|iPad)/)&&(o="+"+o),o="viber://chat?number="+o),h=""):"TikTok"==a.channel_type&&(o="https://www.tiktok.com/@"+(o=z(t.trim(e.value),"@")),h="");return""+i+""}function L(t){return t=(t=(t=(t=z(t,"+")).replace(/ /g,"")).replace(/-/g,"")).replace(/_/g,"")}function z(a,e){for(a=t.trim(a);a.charAt(0)==e;)a=a.substring(1);for(;a.charAt(a.length-1)==e;)a=a.substring(0,a.length-1);return a}function I(a,e,c,i){var n,o,h,l,r,d,y,g,p,_,f="";if(X(a.is_agent))a.url="javascript:;",a.target="";else if("Whatsapp"==a.channel_type){if(X(a.has_welcome_message))a.url="javascript:;",a.target="",f+=" has-chaty-box chaty-whatsapp-btn-form",function a(e,c){let i=new Date;var n=10>i.getMinutes()?"0"+i.getMinutes():i.getMinutes(),o=10>i.getHours()?"0"+i.getHours():i.getHours(),h="",l=W(c);null==l&&(l=-1);var r="https://web.whatsapp.com/send",d="";s?r="https://wa.me/"+e.value:(r=X(e.is_use_web_version)?"https://web.whatsapp.com/send":"https://wa.me/"+e.value,d="_blank"),h+="